diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:19:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:19:15 +0000 |
commit | 6eb9c5a5657d1fe77b55cc261450f3538d35a94d (patch) | |
tree | 657d8194422a5daccecfd42d654b8a245ef7b4c8 /doc/src/sgml/html/sql-show.html | |
parent | Initial commit. (diff) | |
download | postgresql-13-6eb9c5a5657d1fe77b55cc261450f3538d35a94d.tar.xz postgresql-13-6eb9c5a5657d1fe77b55cc261450f3538d35a94d.zip |
Adding upstream version 13.4.upstream/13.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/src/sgml/html/sql-show.html')
-rw-r--r-- | doc/src/sgml/html/sql-show.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/doc/src/sgml/html/sql-show.html b/doc/src/sgml/html/sql-show.html new file mode 100644 index 0000000..1d4c08e --- /dev/null +++ b/doc/src/sgml/html/sql-show.html @@ -0,0 +1,82 @@ +<?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="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><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 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 13.4 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.178.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.178.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.178.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.178.7"><h2>Notes</h2><p> + The function <code class="function">current_setting</code> produces + equivalent output; see <a class="xref" href="functions-admin.html#FUNCTIONS-ADMIN-SET" title="9.27.1. Configuration Settings Functions">Section 9.27.1</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.178.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.178.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.178.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 13.4 Documentation">Home</a></td><td width="40%" align="right" valign="top"> START TRANSACTION</td></tr></table></div></body></html>
\ No newline at end of file |