📄 reindexdb.1
字号:
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "REINDEXDB" "1" "2008-01-03" "Application" "PostgreSQL Client Applications".SH NAMEreindexdb \- reindex a PostgreSQL database.SH SYNOPSIS.sp\fBreindexdb\fR [ \fB\fIconnection-option\fB\fR\fI...\fR ] [ \fB--table | -t \fItable\fB \fR ] [ \fB--index | -i \fIindex\fB \fR ] [ \fB\fIdbname\fB\fR ] \fBreindexdb\fR [ \fB\fIconnection-option\fB\fR\fI...\fR ] [ \fB--all | -a\fR ] \fBreindexdb\fR [ \fB\fIconnection-option\fB\fR\fI...\fR ] [ \fB--system | -s\fR ] [ \fB\fIdbname\fB\fR ] .SH "DESCRIPTION".PP\fBreindexdb\fR is a utility for rebuilding indexesin a PostgreSQL database..PP\fBreindexdb\fR is a wrapper around the SQLcommand REINDEX [\fBreindex\fR(7)].There is no effective difference between reindexing databases viathis utility and via other methods for accessing the server..SH "OPTIONS".PP\fBreindexdb\fR accepts the following command-line arguments:.TP\fB-a\fR.TP\fB--all\fRReindex all databases..TP\fB-s\fR.TP\fB--system\fRReindex database's system catalogs..TP\fB-t \fItable\fB\fR.TP\fB--table \fItable\fB\fRReindex \fItable\fR only..TP\fB-i \fIindex\fB\fR.TP\fB--index \fIindex\fB\fRRecreate \fIindex\fR only..TP\fB[-d] \fIdbname\fB\fR.TP\fB[--dbname] \fIdbname\fB\fRSpecifies the name of the database to be reindexed.If this is not specified and \fB-a\fR (or\fB--all\fR) is not used, the database name is readfrom the environment variable \fBPGDATABASE\fR. Ifthat is not set, the user name specified for the connection isused..TP\fB-e\fR.TP\fB--echo\fREcho the commands that \fBreindexdb\fR generatesand sends to the server..TP\fB-q\fR.TP\fB--quiet\fRDo not display a response..PP.PP\fBreindexdb\fR also accepts the following command-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 server isrunning. If the value begins with a slash, it is used as thedirectory 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..TP\fB-W\fR.TP\fB--password\fRForce password prompt..PP.SH "ENVIRONMENT".TP\fBPGDATABASE\fR.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 REINDEX [\fBreindex\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 "NOTES".PP\fBreindexdb\fR might need to connect severaltimes to the PostgreSQL server, askingfor a password each time. It is convenient to have a\fI~/.pgpass\fR file in such cases. See in the documentation for more information..SH "EXAMPLES".PPTo reindex the database test:.sp.nf$ \fBreindexdb test\fR.sp.fi.PPTo reindex the table foo and the indexbar in a database named abcd:.sp.nf$ \fBreindexdb --table foo --index bar abcd\fR.sp.fi.SH "SEE ALSO"REINDEX [\fBreindex\fR(7)]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -