Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index802
psql --username=username-U username--username=username
Connect to the database as the user username instead of the default. (You must have permission to do so, of course.)psql › Options
psql --variable=assignment-v assignment--set=assignment--variable=assignment
Perform a variable assignment, like the \set meta-command. Note that you must separate name and value, if any, by an equal sign on the comm…psql › Options
psql --version-V--version
Print the psql version and exit.psql › Options
reindexdbreindexdb reindexdb — reindex a PostgreSQL database
Synopsis reindexdb [connection-option...] [option...] [ -S | --schema schema ] ... [ -t | --table table ] ... [ -i | --index index ] ... […reindexdb
reindexdb --all-a--all
Reindex all databases.reindexdb › Options
reindexdb --concurrently--concurrently
Use the CONCURRENTLY option. See REINDEX, where all the caveats of this option are explained in detail.reindexdb › Options
reindexdb --echo-e--echo
Echo the commands that reindexdb generates and sends to the server.reindexdb › Options
reindexdb --help-?--help
Show help about reindexdb command line arguments, and exit.reindexdb › Options
reindexdb --host=host-h host--host=host
Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket.reindexdb › Options
reindexdb --index=index-i index--index=index
Recreate index only. Multiple indexes can be recreated by writing multiple -i switches.reindexdb › Options
reindexdb --jobs=njobs-j njobs--jobs=njobs
Execute the reindex commands in parallel by running njobs commands simultaneously. This option may reduce the processing time but it also increases the load on the datab…reindexdb › Options
reindexdb --maintenance-db=dbname--maintenance-db=dbname
When the -a/--all is used, connect to this database to gather the list of databases to reindex. If not specified, the postgres database will be used, or if that does …reindexdb › Options
reindexdb --no-password-w--no-password
Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt wi…reindexdb › Options
reindexdb --password-W--password
Force reindexdb to prompt for a password before connecting to a database. This option is never essential, since reindexdb will automatically prompt for a password if the server …reindexdb › Options
reindexdb --port=port-p port--port=port
Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections.reindexdb › Options
reindexdb --quiet-q--quiet
Do not display progress messages.reindexdb › Options
reindexdb --schema=schema-S schema--schema=schema
Reindex schema only. Multiple schemas can be reindexed by writing multiple -S switches.reindexdb › Options
reindexdb --system-s--system
Reindex database's system catalogs only.reindexdb › Options
reindexdb --table=table-t table--table=table
Reindex table only. Multiple tables can be reindexed by writing multiple -t switches.reindexdb › Options
reindexdb --tablespace=tablespace--tablespace=tablespace
Specifies the tablespace where indexes are rebuilt. (This name is processed as a double-quoted identifier.)reindexdb › Options
reindexdb --username=username-U username--username=username
User name to connect as.reindexdb › Options
reindexdb --verbose-v--verbose
Print detailed information during processing.reindexdb › Options
reindexdb --version-V--version
Print the reindexdb version and exit.reindexdb › Options
reindexdb [--dbname=]dbname[-d] dbname[--dbname=]dbname
Specifies the name of the database to be reindexed, when -a/--all is not used. If this is not specified, the database name is read from the environment variable …reindexdb › Options
replicationreplication
This option determines whether the connection should use the replication protocol instead of the normal protocol. This is what PostgreSQL replication connections as well as tools…Database Connection Control Functions › Parameter Key Words
require_authrequire_auth
Specifies the authentication method that the client requires from the server. If the server does not use the required method to authenticate the client, or if the authentication…Database Connection Control Functions › Parameter Key Words
requirepeerrequirepeer
This parameter specifies the operating-system user name of the server, for example requirepeer=postgres. When making a Unix-domain socket connection, if this parameter is set, th…Database Connection Control Functions › Parameter Key Words
requiresslrequiressl
This option is deprecated in favor of the sslmode setting. If set to 1, an SSL connection to the server is required (this is equivalent to sslmode require). libpq will then refuse…Database Connection Control Functions › Parameter Key Words
scram_client_keyscram_client_key
The base64-encoded SCRAM client key. This can be used by foreign-data wrappers or similar middleware to enable pass-through SCRAM authentication. See Section F.38.1.10 for o…Database Connection Control Functions › Parameter Key Words
scram_server_keyscram_server_key
The base64-encoded SCRAM server key. This can be used by foreign-data wrappers or similar middleware to enable pass-through SCRAM authentication. See Section F.38.1.10 for o…Database Connection Control Functions › Parameter Key Words
serviceservice
Service name to use for additional parameters. It specifies a service name in pg_service.conf that holds additional connection parameters. This allows applications to specify only a …Database Connection Control Functions › Parameter Key Words
ssl_max_protocol_versionssl_max_protocol_version
This parameter specifies the maximum SSL/TLS protocol version to allow for the connection. Valid values are TLSv1, TLSv1.1, TLSv1.2 and TLSv1.3. The supported protoc…Database Connection Control Functions › Parameter Key Words
ssl_min_protocol_versionssl_min_protocol_version
This parameter specifies the minimum SSL/TLS protocol version to allow for the connection. Valid values are TLSv1, TLSv1.1, TLSv1.2 and TLSv1.3. The supported protoc…Database Connection Control Functions › Parameter Key Words
sslcertsslcert
This parameter specifies the file name of the client SSL certificate, replacing the default ~/.postgresql/postgresql.crt. This parameter is ignored if an SSL connection is not made.Database Connection Control Functions › Parameter Key Words
sslcertmodesslcertmode
This option determines whether a client certificate may be sent to the server, and whether the server is required to request one. There are three modes: disable A client certific…Database Connection Control Functions › Parameter Key Words
sslcompressionsslcompression
If set to 1, data sent over SSL connections will be compressed. If set to 0, compression will be disabled. The default is 0. This parameter is ignored if a connection without …Database Connection Control Functions › Parameter Key Words
sslcrlsslcrl
This parameter specifies the file name of the SSL server certificate revocation list (CRL). Certificates listed in this file, if it exists, will be rejected while attempting to authen…Database Connection Control Functions › Parameter Key Words
sslcrldirsslcrldir
This parameter specifies the directory name of the SSL server certificate revocation list (CRL). Certificates listed in the files in this directory, if it exists, will be rejected …Database Connection Control Functions › Parameter Key Words
sslkeysslkey
This parameter specifies the location for the secret key used for the client certificate. It can either specify a file name that will be used instead of the default ~/.postgresql/post…Database Connection Control Functions › Parameter Key Words
sslkeylogfilesslkeylogfile
This parameter specifies the location where libpq will log keys used in this SSL context. This is useful for debugging PostgreSQL protocol interactions or client connections us…Database Connection Control Functions › Parameter Key Words
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open