SHOW

|              SHOW              |                       |            |                  |                                   |
|:------------------------------:|-----------------------|------------|------------------|-----------------------------------|
|[Prev](sql-set-transaction.html)|[Up](sql-commands.html)|SQL Commands|[Home](index.html)| [Next](sql-start-transaction.html)|

---

[]()

## SHOW

SHOW — show the value of a run-time parameter

## Synopsis

```
SHOW name
SHOW ALL

```

## Description

`SHOW` will display the current setting of run-time parameters. These variables can be set using the `SET` statement, by editing the `postgresql.conf` configuration file, through the `PGOPTIONS` environmental variable (when using libpq or a libpq-based application), or through command-line flags when starting the `postgres` server. See [Chapter 20](runtime-config.html) for details.

## Parameters

*`name`*

 The name of a run-time parameter. Available parameters are documented in [Chapter 20](runtime-config.html) and on the [SET](sql-set.html) reference page. In addition, there are a few parameters that can be shown but not set:

`SERVER_VERSION`

 Shows the server's version number.

`SERVER_ENCODING`

 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.

`LC_COLLATE`

 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.

`LC_CTYPE`

 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.

`IS_SUPERUSER`

 True if the current role has superuser privileges.

`ALL`

 Show the values of all configuration parameters, with descriptions.

## Notes

 The function `current_setting` produces equivalent output; see [Section 9.27.1](functions-admin.html#FUNCTIONS-ADMIN-SET). Also, the [`pg_settings`](view-pg-settings.html) system view produces the same information.

## Examples

 Show the current setting of the parameter `DateStyle`:

```
SHOW DateStyle;
 DateStyle
-----------
 ISO, MDY
(1 row)

```

 Show the current setting of the parameter `geqo`:

```
SHOW geqo;
 geqo
------
 on
(1 row)

```

 Show all settings:

```
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)

```

## Compatibility

 The `SHOW` command is a PostgreSQL extension.

## See Also

[SET](sql-set.html), [RESET](sql-reset.html)

---

|[Prev](sql-set-transaction.html)|[Up](sql-commands.html)| [Next](sql-start-transaction.html)|
|:-------------------------------|:---------------------:|----------------------------------:|
|        SET TRANSACTION         |  [Home](index.html)   |         START TRANSACTION         |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>