SHOW(7)
πΈ SHOW(7) β the "girl, what's it set to rn??" command πΈ
okay so this is from the PostgreSQL 17.11 Documentation, page SHOW(7), and bestie it's literally the most low-key useful thing ever π
β¨ NAME β¨
SHOW β shows you the value of a run-time parameter π periodt
π SYNOPSIS π
SHOW name
SHOW ALL
π¦ DESCRIPTION π¦
okay so SHOW displays the current setting of run-time parameters. iconic behavior honestly π
and the way these variables get set in the first place? several ways, ngl:
- using the
SETstatement - editing the
postgresql.confconfiguration file - through the
PGOPTIONSenvironmental variable (when you're usinglibpqor alibpq-based application) - through command-line flags when starting the
postgresserver
see Chapter 19 for the details, iykyk π
π PARAMETERS π
nameβ the name of a run-time parameter. the available parameters are documented in Chapter 19 and on theSET(7)reference page. and ALSO, plot twist π«’ there are a few parameters that you can show 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. it's giving "decided before you got here" energy fr fr πIS_SUPERUSERβTrueif the current role has superuser privileges π main character energy only
ALLβ show the values of all configuration parameters, with descriptions ποΈ literally all of them
π NOTES π
the function current_setting produces equivalent output; see Section 9.28.1. ALSO, the pg_settings system view produces the same information. three ways to get the same answer, we love options π
π₯ 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)
196 rows of pure information, she ate and left no crumbs π
π COMPATIBILITY π
the SHOW command is a PostgreSQL extension β¨ (not standard SQL, just FYI bestie, no cap)
π«Ά SEE ALSO π«Ά
SET(7), RESET(7) β go read your sisters π
and that's the whole page!! brought to you by the PostgreSQL 17.11 docs, dated 2026, SHOW(7). slay, go check your settings ππ
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms