1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2004-01-06 18:26:23 +01:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/show.sgml,v 1.35 2004/01/06 17:26:23 neilc Exp $
|
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">
|
|
|
|
<refmeta>
|
2000-06-18 23:24:54 +02:00
|
|
|
<refentrytitle id="SQL-SHOW-TITLE">SHOW</refentrytitle>
|
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
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="sql-show">
|
|
|
|
<primary>SHOW</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsynopsisdiv>
|
2003-05-04 04:23:16 +02:00
|
|
|
<synopsis>
|
2000-06-18 23:24:54 +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
|
|
|
|
<command>postmaster</command>. See <xref
|
|
|
|
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>
|
|
|
|
<term><replaceable class="PARAMETER">name</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of a run-time parameter. Available parameters are
|
|
|
|
documented in <xref linkend="runtime-config"> and on the <xref
|
|
|
|
linkend="SQL-SET" endterm="SQL-SET-title"> reference page. In
|
|
|
|
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
|
|
|
|
set, because the setting is determined at
|
|
|
|
<command>initdb</> time.
|
|
|
|
</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
|
|
|
|
not set, because the setting is determined at
|
|
|
|
<command>initdb</> time.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2003-06-27 21:08:38 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>IS_SUPERUSER</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
True if the current session authorization identifier has
|
|
|
|
superuser privileges.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2003-05-04 04:23:16 +02:00
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>ALL</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Show the values of all configurations parameters.
|
|
|
|
</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
|
|
|
|
equivalent output. See <xref linkend="functions-misc">.
|
|
|
|
</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;
|
|
|
|
name | setting
|
|
|
|
-------------------------------+---------------------------------------
|
|
|
|
australian_timezones | off
|
|
|
|
authentication_timeout | 60
|
|
|
|
checkpoint_segments | 3
|
|
|
|
.
|
|
|
|
.
|
|
|
|
.
|
2004-01-06 18:26:23 +01:00
|
|
|
wal_debug | off
|
2002-08-04 05:53:11 +02:00
|
|
|
wal_sync_method | fdatasync
|
|
|
|
(94 rows)
|
2002-08-04 07:46:02 +02:00
|
|
|
</programlisting>
|
2002-08-04 05:53:11 +02:00
|
|
|
</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">
|
|
|
|
<member><xref linkend="SQL-SET" endterm="SQL-SET-title"></member>
|
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:nil
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
1999-07-14 22:32:59 +02:00
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
1999-06-14 09:37:05 +02:00
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
-->
|