3 PostgreSQL documentation
6 <refentry id=
"SQL-SHOW">
8 <refentrytitle id=
"SQL-SHOW-TITLE">SHOW
</refentrytitle>
9 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
13 <refname>SHOW
</refname>
14 <refpurpose>show the value of a run-time parameter
</refpurpose>
17 <indexterm zone=
"sql-show">
18 <primary>SHOW
</primary>
23 SHOW
<replaceable class=
"PARAMETER">name
</replaceable>
29 <title>Description
</title>
32 <command>SHOW
</command> will display the current setting of
33 run-time parameters. These variables can be set using the
34 <command>SET
</command> statement, by editing the
35 <filename>postgresql.conf
</filename> configuration file, through
36 the
<envar>PGOPTIONS
</envar> environmental variable (when using
37 <application>libpq<
/> or a
<application>libpq<
/>-based
38 application), or through command-line flags when starting the
39 <command>postgres
</command> server. See
<xref
40 linkend=
"runtime-config"> for details.
45 <title>Parameters
</title>
49 <term><replaceable class=
"PARAMETER">name
</replaceable></term>
52 The name of a run-time parameter. Available parameters are
53 documented in
<xref linkend=
"runtime-config"> and on the
<xref
54 linkend=
"SQL-SET" endterm=
"SQL-SET-title"> reference page. In
55 addition, there are a few parameters that can be shown but not
60 <term><literal>SERVER_VERSION
</literal></term>
63 Shows the server's version number.
69 <term><literal>SERVER_ENCODING
</literal></term>
72 Shows the server-side character set encoding. At present,
73 this parameter can be shown but not set, because the
74 encoding is determined at database creation time.
80 <term><literal>LC_COLLATE
</literal></term>
83 Shows the database's locale setting for collation (text
84 ordering). At present, this parameter can be shown but not
85 set, because the setting is determined at
86 <command>initdb<
/> time.
92 <term><literal>LC_CTYPE
</literal></term>
95 Shows the database's locale setting for character
96 classification. At present, this parameter can be shown but
97 not set, because the setting is determined at
98 <command>initdb<
/> time.
104 <term><literal>IS_SUPERUSER
</literal></term>
107 True if the current session authorization identifier has
108 superuser privileges.
118 <term><literal>ALL
</literal></term>
121 Show the values of all configuration parameters, with descriptions.
132 The function
<function>current_setting
</function> produces
133 equivalent output; see
<xref linkend=
"functions-admin">.
135 <link linkend=
"view-pg-settings"><structname>pg_settings
</structname></link>
136 system view produces the same information.
142 <title>Examples
</title>
145 Show the current setting of the parameter
<varname>DateStyle
</varname>:
157 Show the current setting of the parameter
<varname>geqo
</varname>:
171 name | setting | description
172 --------------------------------+--------------------------------+----------------------------------------------------------------------------------------------
173 add_missing_from | off | Automatically adds missing table references to FROM clauses.
174 allow_system_table_mods | off | Allows modifications of the structure of system tables.
178 work_mem |
1024 | Sets the maximum memory to be used for query workspaces.
179 zero_damaged_pages | off | Continues processing past damaged page headers.
186 <title>Compatibility
</title>
189 The
<command>SHOW
</command> command is a
190 <productname>PostgreSQL
</productname> extension.
195 <title>See Also
</title>
197 <simplelist type=
"inline">
198 <member><xref linkend=
"SQL-SET" endterm=
"SQL-SET-title"></member>
199 <member><xref linkend=
"SQL-RESET" endterm=
"SQL-RESET-title"></member>