This text was automatically converted from troff me macros to HTML. Information may have been lost, added, or changed in the process. Lars Aronsson and Lysator do not guarantee the correctness of this HTML document.
destroyuser *
- destroy a POSTGRES user
destroyuser [-p port] [-h host] username
Destroyuser destroys an existing POSTGRES user. Only users with ``usesuper'' set in the pg_user class can destroy POSTGRES users. As shipped, the user ``postgres'' can destroy users.
Username is the name of the POSTGRES user to be destroyed.
The argument port and hostname are the same as in the terminal monitor - they are used to connect to the postmaster using the TCP/IP port port running on the database server hostname. The defaults are to the local machine (localhost) and to the default port (4321).
Once invoked with the above options destroyuser will warn the person destroying the POSTGRES user about the databases that will be destroyed in the process. If the databases should not be destroyed, destroyuser can be aborted.
createuser(unix).
You are not a valid POSTGRES user
You do not have a users file entry, and can not do anything with POSTGRES at all.
<user> does not exist
The user does not exist.