dropuser.1
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 1 代码 · 共 121 行
1
121 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "DROPUSER" "1" "2008-01-03" "Application" "PostgreSQL Client Applications".SH NAMEdropuser \- remove a PostgreSQL user account.SH SYNOPSIS.sp\fBdropuser\fR [ \fB\fIoption\fB\fR\fI...\fR ] [ \fB\fIusername\fB\fR ] .SH "DESCRIPTION".PP\fBdropuser\fR removes an existingPostgreSQL user.Only superusers and users with the CREATEROLE privilege canremove PostgreSQL users. (To remove asuperuser, you must yourself be a superuser.).PP\fBdropuser\fR is a wrapper around theSQL command DROP ROLE [\fBdrop_role\fR(7)].There is no effective difference between dropping users viathis utility and via other methods for accessing the server..SH "OPTIONS".PP\fBdropuser\fR accepts the following command-line arguments:.TP\fB\fIusername\fB\fRSpecifies the name of the PostgreSQL user to be removed. You will be prompted for a name if none is specified on the command line..TP\fB-e\fR.TP\fB--echo\fREcho the commands that \fBdropuser\fR generatesand sends to the server..TP\fB-i\fR.TP\fB--interactive\fRPrompt for confirmation before actually removing the user..TP\fB-q\fR.TP\fB--quiet\fRDo not display a response..PP.PP\fBdropuser\fR also accepts the followingcommand-line arguments for connection parameters:.TP\fB-h \fIhost\fB\fR.TP\fB--host \fIhost\fB\fRSpecifies the host name of the machine on which the serveris running. If the value begins with a slash, it is used as the directory for the Unix domain socket..TP\fB-p \fIport\fB\fR.TP\fB--port \fIport\fB\fRSpecifies the TCP port or local Unix domain socket file extension on which the serveris listening for connections..TP\fB-U \fIusername\fB\fR.TP\fB--username \fIusername\fB\fRUser name to connect as (not the user name to drop).TP\fB-W\fR.TP\fB--password\fRForce password prompt (to connect to the server, not for thepassword of the user to be dropped)..PP.SH "ENVIRONMENT".TP\fBPGHOST\fR.TP\fBPGPORT\fR.TP\fBPGUSER\fRDefault connection parameters.PPThis utility, like most other PostgreSQL utilities,also uses the environment variables supported by \fBlibpq\fR(see in the documentation)..PP.SH "DIAGNOSTICS".PPIn case of difficulty, see DROP ROLE [\fBdrop_role\fR(7)] and \fBpsql\fR(1) fordiscussions of potential problems and error messages.The database server must be running at thetargeted host. Also, any default connection settings and environmentvariables used by the \fBlibpq\fR front-endlibrary will apply..SH "EXAMPLES".PPTo remove user joe from the default databaseserver:.sp.nf$ \fBdropuser joe\fRDROP ROLE.sp.fi.PPTo remove user joe using the server on hosteden, port 5000, with verification and a peek at the underlyingcommand:.sp.nf$ \fBdropuser -p 5000 -h eden -i -e joe\fRRole "joe" will be permanently removed.Are you sure? (y/n) \fBy\fRDROP ROLE "joe"DROP ROLE.sp.fi.SH "SEE ALSO"\fBcreateuser\fR(1), DROP ROLE [\fBdrop_role\fR(7)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?