2 $PostgreSQL: pgsql/doc/src/sgml/ref/show.sgml,v 1.39 2005/06/14 20:42:52 momjian Exp $
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>postmaster</command>. 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">.
138 <title>Examples</title>
141 Show the current setting of the parameter <varname>DateStyle</varname>:
153 Show the current setting of the parameter <varname>geqo</varname>:
167 name | setting | description
168 --------------------------------+--------------------------------+----------------------------------------------------------------------------------------------
169 add_missing_from | off | Automatically adds missing table references to FROM clauses.
170 archive_command | unset | WAL archiving command.
171 australian_timezones | off | Interprets ACST, CST, EST, and SAT as Australian time zones.
175 work_mem | 1024 | Sets the maximum memory to be used for query workspaces.
176 zero_damaged_pages | off | Continues processing past damaged page headers.
183 <title>Compatibility</title>
186 The <command>SHOW</command> command is a
187 <productname>PostgreSQL</productname> extension.
192 <title>See Also</title>
194 <simplelist type="inline">
195 <member><xref linkend="SQL-SET" endterm="SQL-SET-title"></member>
196 <member><xref linkend="SQL-RESET" endterm="SQL-RESET-title"></member>
202 <!-- Keep this comment at the end of the file
207 sgml-minimize-attributes:nil
208 sgml-always-quote-attributes:t
211 sgml-parent-document:nil
212 sgml-default-dtd-file:"../reference.ced"
213 sgml-exposed-tags:nil
214 sgml-local-catalogs:"/usr/lib/sgml/catalog"
215 sgml-local-ecat-files:nil