Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
dropuser(1)
Edit
PageHistory
Diff
Info
LikePages
DROPUSER !!!DROPUSER NAME SYNOPSIS DESCRIPTION USAGE ---- !!NAME dropuser - remove a PostgreSQL user account !!SYNOPSIS __dropuser__ [[ ''options''... ] [[ ''username'' ] __INPUTS__ __-h, --host__ ''host'' Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for the Unix domain socket. __-p, --port__ ''port'' Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections. __-e, --echo__ Echo the queries that __createdb__ generates and sends to the server. __-q, --quiet__ Do not display a response. __-i, --interactive__ Prompt for confirmation before actually removing the user. ''username'' Specifies the name of the PostgreSQL user to be removed. This name must exist in the PostgreSQL installation. You will be prompted for a name if none is specified on the command line. The options -h, -p, and -e, are passed on literally to psql(1). The __psql__ options -U and -W are available as well, but they can be confusing in this context. __OUTPUTS__ __DROP USER__ All is well. __dropuser: deletion of user __''username''____ Something went wrong. The user was not removed. If there is an error condition, the backend error message will be displayed. See DROP USER [[__drop_user__(l)] and psql(1) for possibilities. !!DESCRIPTION __dropuser__ removes an existing PostgreSQL user __and__ the databases which that user owned. Only users with usesuper set in the pg_shadow table can destroy PostgreSQL users. __dropuser__ is a shell script wrapper around the SQL command DROP USER [[__drop_user__(l)] via the PostgreSQL interactive terminal psql(1). Thus, there is nothing special about removing users via this or other methods. This means that the __psql__ must be found by the script and that a database server is running at the targeted host. Also, any default settings and environment variables available to __psql__ and the __libpq__ front-end library do apply. !!USAGE To remove user joe from the default database server: $ __dropuser joe __DROP USER To remove user joe using the postmaster on host eden, port 5000, with verification and a peek at the underlying query: $ __dropuser -p 5000 -h eden -i -e joe __User __y __DROP USER __ ----
2 pages link to
dropuser(1)
:
pg_wrapper(1)
Man1d
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.