1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2010-09-20 22:08:53 +02:00
|
|
|
doc/src/sgml/ref/show.sgml
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refentry id="SQL-SHOW">
|
2014-02-24 03:25:35 +01:00
|
|
|
<indexterm zone="sql-show">
|
|
|
|
<primary>SHOW</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refmeta>
|
2010-04-03 09:23:02 +02:00
|
|
|
<refentrytitle>SHOW</refentrytitle>
|
2008-11-14 11:22:48 +01:00
|
|
|
<manvolnum>7</manvolnum>
|
1999-06-14 09:37:05 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refnamediv>
|
2000-06-18 23:24:54 +02:00
|
|
|
<refname>SHOW</refname>
|
2001-09-03 14:57:50 +02:00
|
|
|
<refpurpose>show the value of a run-time parameter</refpurpose>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refnamediv>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsynopsisdiv>
|
2003-05-04 04:23:16 +02:00
|
|
|
<synopsis>
|
2017-10-09 04:00:57 +02:00
|
|
|
SHOW <replaceable class="parameter">name</replaceable>
|
2001-06-07 06:50:57 +02:00
|
|
|
SHOW ALL
|
2003-05-04 04:23:16 +02:00
|
|
|
</synopsis>
|
2000-06-18 23:24:54 +02:00
|
|
|
</refsynopsisdiv>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
2000-06-18 23:24:54 +02:00
|
|
|
<title>Description</title>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<para>
|
2003-04-25 21:45:10 +02:00
|
|
|
<command>SHOW</command> will display the current setting of
|
|
|
|
run-time parameters. These variables can be set using the
|
2002-08-04 07:09:36 +02:00
|
|
|
<command>SET</command> statement, by editing the
|
2003-05-04 04:23:16 +02:00
|
|
|
<filename>postgresql.conf</filename> configuration file, through
|
|
|
|
the <envar>PGOPTIONS</envar> environmental variable (when using
|
|
|
|
<application>libpq</> or a <application>libpq</>-based
|
|
|
|
application), or through command-line flags when starting the
|
2007-09-11 02:06:42 +02:00
|
|
|
<command>postgres</command> server. See <xref
|
2003-05-04 04:23:16 +02:00
|
|
|
linkend="runtime-config"> for details.
|
2000-06-18 23:24:54 +02:00
|
|
|
</para>
|
2003-05-04 04:23:16 +02:00
|
|
|
</refsect1>
|
2003-04-25 21:45:10 +02:00
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Parameters</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2017-10-09 04:00:57 +02:00
|
|
|
<term><replaceable class="parameter">name</replaceable></term>
|
2003-05-04 04:23:16 +02:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of a run-time parameter. Available parameters are
|
|
|
|
documented in <xref linkend="runtime-config"> and on the <xref
|
2010-04-03 09:23:02 +02:00
|
|
|
linkend="SQL-SET"> reference page. In
|
2003-05-04 04:23:16 +02:00
|
|
|
addition, there are a few parameters that can be shown but not
|
|
|
|
set:
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>SERVER_VERSION</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Shows the server's version number.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>SERVER_ENCODING</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Shows the server-side character set encoding. At present,
|
|
|
|
this parameter can be shown but not set, because the
|
|
|
|
encoding is determined at database creation time.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>LC_COLLATE</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Shows the database's locale setting for collation (text
|
|
|
|
ordering). At present, this parameter can be shown but not
|
2008-09-23 11:20:39 +02:00
|
|
|
set, because the setting is determined at database creation
|
|
|
|
time.
|
2003-05-04 04:23:16 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>LC_CTYPE</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Shows the database's locale setting for character
|
|
|
|
classification. At present, this parameter can be shown but
|
2008-09-23 11:20:39 +02:00
|
|
|
not set, because the setting is determined at database creation
|
|
|
|
time.
|
2003-05-04 04:23:16 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2003-06-27 21:08:38 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>IS_SUPERUSER</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-01-03 22:23:15 +01:00
|
|
|
True if the current role has superuser privileges.
|
2003-06-27 21:08:38 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2011-08-07 09:49:45 +02:00
|
|
|
</variablelist></para>
|
2003-05-04 04:23:16 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>ALL</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2005-06-14 22:42:53 +02:00
|
|
|
Show the values of all configuration parameters, with descriptions.
|
2003-05-04 04:23:16 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2000-06-18 23:24:54 +02:00
|
|
|
</refsect1>
|
|
|
|
|
2003-03-25 17:15:44 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>Notes</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The function <function>current_setting</function> produces
|
2007-09-11 02:06:42 +02:00
|
|
|
equivalent output; see <xref linkend="functions-admin">.
|
|
|
|
Also, the
|
|
|
|
<link linkend="view-pg-settings"><structname>pg_settings</structname></link>
|
|
|
|
system view produces the same information.
|
|
|
|
|
2003-03-25 17:15:44 +01:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
2000-06-18 23:24:54 +02:00
|
|
|
<title>Examples</title>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<para>
|
2003-05-04 04:23:16 +02:00
|
|
|
Show the current setting of the parameter <varname>DateStyle</varname>:
|
1999-07-14 22:32:59 +02:00
|
|
|
|
2002-08-04 07:09:36 +02:00
|
|
|
<programlisting>
|
1999-06-14 09:37:05 +02:00
|
|
|
SHOW DateStyle;
|
2003-07-15 21:19:56 +02:00
|
|
|
DateStyle
|
|
|
|
-----------
|
2003-07-29 02:03:19 +02:00
|
|
|
ISO, MDY
|
2002-08-04 05:53:11 +02:00
|
|
|
(1 row)
|
2002-08-04 07:09:36 +02:00
|
|
|
</programlisting>
|
1999-07-14 22:32:59 +02:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
|
1999-07-14 22:32:59 +02:00
|
|
|
<para>
|
2003-05-04 04:23:16 +02:00
|
|
|
Show the current setting of the parameter <varname>geqo</varname>:
|
2002-08-04 07:09:36 +02:00
|
|
|
<programlisting>
|
2003-05-04 04:23:16 +02:00
|
|
|
SHOW geqo;
|
2002-08-04 05:53:11 +02:00
|
|
|
geqo
|
|
|
|
------
|
|
|
|
on
|
|
|
|
(1 row)
|
2002-08-04 07:09:36 +02:00
|
|
|
</programlisting>
|
1999-06-14 09:37:05 +02:00
|
|
|
</para>
|
2002-08-04 05:53:11 +02:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Show all settings:
|
2002-08-04 07:46:02 +02:00
|
|
|
<programlisting>
|
2002-08-04 05:53:11 +02:00
|
|
|
SHOW ALL;
|
2010-05-17 22:50:44 +02:00
|
|
|
name | setting | description
|
|
|
|
-------------------------+---------+-------------------------------------------------
|
|
|
|
allow_system_table_mods | off | Allows modifications of the structure of ...
|
2002-08-04 05:53:11 +02:00
|
|
|
.
|
|
|
|
.
|
|
|
|
.
|
2010-05-17 22:50:44 +02:00
|
|
|
xmloption | content | Sets whether XML data in implicit parsing ...
|
|
|
|
zero_damaged_pages | off | Continues processing past damaged page headers.
|
2009-10-21 22:22:38 +02:00
|
|
|
(196 rows)
|
2011-08-07 09:49:45 +02:00
|
|
|
</programlisting></para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect1>
|
|
|
|
|
2003-05-04 04:23:16 +02:00
|
|
|
<refsect1>
|
2000-06-18 23:24:54 +02:00
|
|
|
<title>Compatibility</title>
|
1999-06-14 09:37:05 +02:00
|
|
|
|
2000-06-18 23:24:54 +02:00
|
|
|
<para>
|
|
|
|
The <command>SHOW</command> command is a
|
2001-12-08 04:24:40 +01:00
|
|
|
<productname>PostgreSQL</productname> extension.
|
2000-06-18 23:24:54 +02:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect1>
|
2003-05-04 04:23:16 +02:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<simplelist type="inline">
|
2010-04-03 09:23:02 +02:00
|
|
|
<member><xref linkend="SQL-SET"></member>
|
|
|
|
<member><xref linkend="SQL-RESET"></member>
|
2003-05-04 04:23:16 +02:00
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentry>
|