SHOWSection: SQL Commands (7)Updated: 2003-11-02 |
SHOWSection: SQL Commands (7)Updated: 2003-11-02 |
SHOW name SHOW ALL
SHOW will display the current setting of run-time parameters. These variables can be set using the SET statement, by editing the postgresql.conf configuration file, through the PGOPTIONS environmental variable (when using libpq or a libpq-based application), or through command-line flags when starting the postmaster. See the section called ``Run-time Configuration'' in the documentation for details.
The function current_setting produces equivalent output. See the section called ``Miscellaneous Functions'' in the documentation.
Show the current setting of the parameter DateStyle:
SHOW DateStyle; DateStyle ----------- ISO, MDY (1 row)
Show the current setting of the parameter geqo:
SHOW geqo; geqo ------ on (1 row)
Show all settings:
SHOW ALL;
name | setting
-------------------------------+---------------------------------------
australian_timezones | off
authentication_timeout | 60
checkpoint_segments | 3
.
.
.
wal_debug | 0
wal_sync_method | fdatasync
(94 rows)
The SHOW command is a PostgreSQL extension.