↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Administration Functions

current_setting

Read the PG 18 manual

Returns the current value of the setting setting_name.

Reading PG 18current·documented in 25 of 27 versions, 7.3 to 20

Signatures & examples

current_setting ( setting_name text [, missing_ok boolean ] ) → text
Returns the current value of the setting setting_name. If there is no such setting, current_setting throws an error unless missing_ok is supplied and is true (in which case NULL is returned). This function corresponds to the SQL command SHOW.
current_setting('datestyle') → ISO, MDY
Version history 6
  1. 12 → 13 changed
  2. 9.5 → 9.6 changed
  3. 8.3 → 8.4 changed
  4. 7.4 → 8.0 changed
  5. 7.3 → 7.4 changed
  6. 7.2 → 7.3 added

Definition snapshot: b7bd9cda · English manual source