Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index802
PGREQUIRESSLPGREQUIRESSL behaves the same as the requiressl connection parameter. This environment variable is deprecated in favor of the PGSSLMODE variable; setting both variables suppresses the effect…Environment Variables
PGSERVICEPGSERVICE behaves the same as the service connection parameter.Environment Variables
PGSERVICEFILEPGSERVICEFILE specifies the name of the per-user connection service file (see Section 32.17). Defaults to ~/.pg_service.conf, or %APPDATA%\postgresql\.pg_service.conf on Microsoft Windows.Environment Variables
PGSSLCERTPGSSLCERT behaves the same as the sslcert connection parameter.Environment Variables
PGSSLCERTMODEPGSSLCERTMODE behaves the same as the sslcertmode connection parameter.Environment Variables
PGSSLCOMPRESSIONPGSSLCOMPRESSION behaves the same as the sslcompression connection parameter.Environment Variables
PGSSLCRLPGSSLCRL behaves the same as the sslcrl connection parameter.Environment Variables
PGSSLCRLDIRPGSSLCRLDIR behaves the same as the sslcrldir connection parameter.Environment Variables
PGSSLKEYPGSSLKEY behaves the same as the sslkey connection parameter.Environment Variables
PGSSLMAXPROTOCOLVERSIONPGSSLMAXPROTOCOLVERSION behaves the same as the ssl_max_protocol_version connection parameter.Environment Variables
PGSSLMINPROTOCOLVERSIONPGSSLMINPROTOCOLVERSION behaves the same as the ssl_min_protocol_version connection parameter.Environment Variables
PGSSLMODEPGSSLMODE behaves the same as the sslmode connection parameter.Environment Variables
PGSSLNEGOTIATIONPGSSLNEGOTIATION behaves the same as the sslnegotiation connection parameter.Environment Variables
PGSSLROOTCERTPGSSLROOTCERT behaves the same as the sslrootcert connection parameter.Environment Variables
PGSSLSNIPGSSLSNI behaves the same as the sslsni connection parameter.Environment Variables
PGSYSCONFDIRPGSYSCONFDIR sets the directory containing the pg_service.conf file and in a future version possibly other system-wide configuration files.Environment Variables
PGTARGETSESSIONATTRSPGTARGETSESSIONATTRS behaves the same as the target_session_attrs connection parameter.Environment Variables
PGTZPGTZ sets the default time zone. (Equivalent to SET timezone TO ....)Environment Variables
PGUSERPGUSER behaves the same as the user connection parameter.Environment Variables
portport
Port number to connect to at the server host, or socket file name extension for Unix-domain connections. If multiple hosts were given in the host or hostaddr parameters, this parameter …Database Connection Control Functions › Parameter Key Words
postgrespostgres postgres — PostgreSQL database server
Synopsis postgres [option...]postgres
postgres --describe-config--describe-config
This option dumps out the server's internal configuration variables, descriptions, and defaults in tab-delimited COPY format. It is designed primarily for use by administra…postgres › Options › General Purpose
postgres --help-?--help
Show help about postgres command line arguments, and exit.postgres › Options › General Purpose
postgres --name=value--name=value
Sets a named run-time parameter; a shorter form of -c.postgres › Options › General Purpose
postgres --single--single
Selects the single-user mode. This must be the first argument on the command line.postgres › Options › Options for Single-User Mode
postgres --version-V--version
Print the postgres version and exit.postgres › Options › General Purpose
postgres -B nbuffers-B nbuffers
Sets the number of shared buffers for use by the server processes. The default value of this parameter is chosen automatically by initdb. Specifying this option is equivalent to …postgres › Options › General Purpose
postgres -C name-C name
Prints the value of the named run-time parameter, and exits. (See the -c option above for details.) This returns values from postgresql.conf, modified by any parameters supplied in t…postgres › Options › General Purpose
postgres -c name=value-c name=value
Sets a named run-time parameter. The configuration parameters supported by PostgreSQL are described in Chapter 19. Most of the other command line options are in fact short form…postgres › Options › General Purpose
postgres -D datadir-D datadir
Specifies the file system location of the database configuration files. See Section 19.2 for details.postgres › Options › General Purpose
postgres -d debug-level-d debug-level
Sets the debug level. The higher this value is set, the more debugging output is written to the server log. Values are from 1 to 5. It is also possible to pass -d 0 for a spec…postgres › Options › General Purpose
postgres -e-e
Sets the default date style to “European”, that is DMY ordering of input date fields. This also causes the day to be printed before the month in certain date output formats. See Section 8…postgres › Options › General Purpose
postgres -F-F
Disables fsync calls for improved performance, at the risk of data corruption in the event of a system crash. Specifying this option is equivalent to disabling the fsync configuration par…postgres › Options › General Purpose
postgres -h hostname-h hostname
Specifies the IP host name or address on which postgres is to listen for TCP/IP connections from client applications. The value can also be a comma-separated list of addresses, o…postgres › Options › General Purpose
postgres -i-i
Allows remote clients to connect via TCP/IP (Internet domain) connections. Without this option, only local connections are accepted. This option is equivalent to setting listen_addresses …postgres › Options › General Purpose
postgres -j-j
Use semicolon followed by two newlines, rather than just newline, as the command entry terminator.postgres › Options › Options for Single-User Mode
postgres -k directory-k directory
Specifies the directory of the Unix-domain socket on which postgres is to listen for connections from client applications. The value can also be a comma-separated list of direct…postgres › Options › General Purpose
postgres -l-l
Enables secure connections using SSL. PostgreSQL must have been compiled with support for SSL for this option to be available. For more information on using SSL, refer to Section 18.9.postgres › Options › General Purpose
postgres -N max-connections-N max-connections
Sets the maximum number of client connections that this server will accept. The default value of this parameter is chosen automatically by initdb. Specifying this option i…postgres › Options › General Purpose
postgres -O-O
Allows the structure of system tables to be modified. This is used by initdb.postgres › Options › Semi-Internal Options
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open