1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!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="pgsql-docs@lists.postgresql.org" /><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 id="docContent" class="container-fluid col-10"><div 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 18.0 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 /></div><div class="refentry" id="SQL-SHOW"><div class="titlepage"></div><a id="id-1.9.3.179.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">
3 SHOW <em class="replaceable"><code>name</code></em>
5 </pre></div><div class="refsect1" id="id-1.9.3.179.5"><h2>Description</h2><p>
6 <code class="command">SHOW</code> will display the current setting of
7 run-time parameters. These variables can be set using the
8 <code class="command">SET</code> statement, by editing the
9 <code class="filename">postgresql.conf</code> configuration file, through
10 the <code class="envar">PGOPTIONS</code> environmental variable (when using
11 <span class="application">libpq</span> or a <span class="application">libpq</span>-based
12 application), or through command-line flags when starting the
13 <code class="command">postgres</code> server. See <a class="xref" href="runtime-config.html" title="Chapter 19. Server Configuration">Chapter 19</a> for details.
14 </p></div><div class="refsect1" id="id-1.9.3.179.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>
15 The name of a run-time parameter. Available parameters are
16 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
17 addition, there are a few parameters that can be shown but not
20 </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">SERVER_VERSION</code></span></dt><dd><p>
21 Shows the server's version number.
22 </p></dd><dt><span class="term"><code class="literal">SERVER_ENCODING</code></span></dt><dd><p>
23 Shows the server-side character set encoding. At present,
24 this parameter can be shown but not set, because the
25 encoding is determined at database creation time.
26 </p></dd><dt><span class="term"><code class="literal">IS_SUPERUSER</code></span></dt><dd><p>
27 True if the current role has superuser privileges.
28 </p></dd></dl></div></dd><dt><span class="term"><code class="literal">ALL</code></span></dt><dd><p>
29 Show the values of all configuration parameters, with descriptions.
30 </p></dd></dl></div></div><div class="refsect1" id="id-1.9.3.179.7"><h2>Notes</h2><p>
31 The function <code class="function">current_setting</code> produces
32 equivalent output; see <a class="xref" href="functions-admin.html#FUNCTIONS-ADMIN-SET" title="9.28.1. Configuration Settings Functions">Section 9.28.1</a>.
34 <a class="link" href="view-pg-settings.html" title="53.25. pg_settings"><code class="structname">pg_settings</code></a>
35 system view produces the same information.
37 </p></div><div class="refsect1" id="id-1.9.3.179.8"><h2>Examples</h2><p>
38 Show the current setting of the parameter <code class="varname">DateStyle</code>:
40 </p><pre class="programlisting">
48 Show the current setting of the parameter <code class="varname">geqo</code>:
49 </p><pre class="programlisting">
58 </p><pre class="programlisting">
60 name | setting | description
61 -------------------------+---------+-------------------------------------------------
62 allow_system_table_mods | off | Allows modifications of the structure of ...
66 xmloption | content | Sets whether XML data in implicit parsing ...
67 zero_damaged_pages | off | Continues processing past damaged page headers.
69 </pre></div><div class="refsect1" id="id-1.9.3.179.9"><h2>Compatibility</h2><p>
70 The <code class="command">SHOW</code> command is a
71 <span class="productname">PostgreSQL</span> extension.
72 </p></div><div class="refsect1" id="id-1.9.3.179.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 class="navfooter"><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 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> START TRANSACTION</td></tr></table></div></body></html>