2 doc/src/sgml/ref/show.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-show">
7 <indexterm zone=
"sql-show">
8 <primary>SHOW
</primary>
12 <refentrytitle>SHOW
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>SHOW
</refname>
19 <refpurpose>show the value of a run-time parameter
</refpurpose>
24 SHOW
<replaceable class=
"parameter">name
</replaceable>
30 <title>Description
</title>
33 <command>SHOW
</command> will display the current setting of
34 run-time parameters. These variables can be set using the
35 <command>SET
</command> statement, by editing the
36 <filename>postgresql.conf
</filename> configuration file, through
37 the
<envar>PGOPTIONS
</envar> environmental variable (when using
38 <application>libpq
</application> or a
<application>libpq
</application>-based
39 application), or through command-line flags when starting the
40 <command>postgres
</command> server. See
<xref
41 linkend=
"runtime-config"/> for details.
46 <title>Parameters
</title>
50 <term><replaceable class=
"parameter">name
</replaceable></term>
53 The name of a run-time parameter. Available parameters are
54 documented in
<xref linkend=
"runtime-config"/> and on the
<xref
55 linkend=
"sql-set"/> reference page. In
56 addition, there are a few parameters that can be shown but not
61 <term><literal>SERVER_VERSION
</literal></term>
64 Shows the server's version number.
70 <term><literal>SERVER_ENCODING
</literal></term>
73 Shows the server-side character set encoding. At present,
74 this parameter can be shown but not set, because the
75 encoding is determined at database creation time.
81 <term><literal>IS_SUPERUSER
</literal></term>
84 True if the current role has superuser privileges.
88 </variablelist></para>
93 <term><literal>ALL
</literal></term>
96 Show the values of all configuration parameters, with descriptions.
107 The function
<function>current_setting
</function> produces
108 equivalent output; see
<xref linkend=
"functions-admin-set"/>.
110 <link linkend=
"view-pg-settings"><structname>pg_settings
</structname></link>
111 system view produces the same information.
117 <title>Examples
</title>
120 Show the current setting of the parameter
<varname>DateStyle
</varname>:
132 Show the current setting of the parameter
<varname>geqo
</varname>:
146 name | setting | description
147 -------------------------+---------+-------------------------------------------------
148 allow_system_table_mods | off | Allows modifications of the structure of ...
152 xmloption | content | Sets whether XML data in implicit parsing ...
153 zero_damaged_pages | off | Continues processing past damaged page headers.
155 </programlisting></para>
159 <title>Compatibility
</title>
162 The
<command>SHOW
</command> command is a
163 <productname>PostgreSQL
</productname> extension.
168 <title>See Also
</title>
170 <simplelist type=
"inline">
171 <member><xref linkend=
"sql-set"/></member>
172 <member><xref linkend=
"sql-reset"/></member>