SHOW(7)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’– SHOW(7) πŸ’–

okay bestie, welcome to the glow-up of the PostgreSQL 14.24 docs β€” this is the SHOW page and it's literally about peeking at your runtime parameters. yes, the manual is called SHOW(7) and yes you're gonna slay this. 🫢


✨ 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 for details, bestie β€” it's giving "required reading" but in a cute way. πŸ“š


πŸŽ€ PARAMETERS πŸŽ€

  • name β€” the name of a run-time parameter. available parameters are documented in Chapter 20 and on the SET(7) reference page. plus, there are a few parameters that can be shown but not set β€” lowkey special guests that only appear on the read-only list:
    • SERVER_VERSION β€” shows the server's version number. iconic. πŸ’…
    • 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. no take-backsies, it's set in stone (well, in the database). πŸͺ¨
    • 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. same vibe: you can look, bestie, but you cannot touch. βœ‹
    • 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. again: created once, and that's periodt. πŸ’€
    • IS_SUPERUSER β€” True if the current role has superuser privileges. so if you're the main character with root energy, this one's for you. πŸ‘‘
  • ALL β€” show the values of all configuration parameters, with descriptions. it's the full buffet, no skimping. πŸ“

πŸ¦‹ NOTES πŸ¦‹

the function current_setting produces equivalent output; see Section 9.27.1. also, the pg_settings system view produces the same information. so if you're out here like "bestie, is there another way?" β€” yes, there's literally always another way. 🌈


🧚 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 β€” the whole mood board of your database:

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. so no, bestie, this isn't some SQL-standard moment β€” it's our special little thing. 🫢


⭐ SEE ALSO ⭐

SET(7), RESET(7) β€” go check 'em out, they're basically the siblings of this page.


and that's the whole page, bestie β€” SHOW(7) from the PostgreSQL 14.24 documentation, dated 2026, served with a sprinkle of glitter and zero lost details. you're welcome. πŸ’…βœ¨

πŸ“¦ where this page comes from