↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / System Catalogs

pg_settings

The view pg_settings provides access to run-time parameters of the server. It is essentially an alternative interface to the SHOW and SET commands. It also provides access to some facts about each parameter that are not directly available from SHOW, such as minimum and maximum values.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
view
lang
en
measured attributes
true
metadata release
18.6
runtime columns
name, setting, unit, category, short_desc, extra_desc, context, vartype, source, min_val, max_val, enumvals, boot_val, reset_val, sourcefile, sourceline, pending_restart
runtime verified
false
source
english-manual

Definition PG 18

The view pg_settings provides access to run-time parameters of the server. It is essentially an alternative interface to the SHOW and SET commands. It also provides access to some facts about each parameter that are not directly available from SHOW, such as minimum and maximum values.

Catalog columns

ColumnTypeNullabilityDescription
nametextNullableRun-time configuration parameter name
settingtextNullableCurrent value of the parameter
unittextNullableImplicit unit of the parameter
categorytextNullableLogical group of the parameter
short_desctextNullableA brief description of the parameter
extra_desctextNullableAdditional, more detailed, description of the parameter
contexttextNullableContext required to set the parameter's value (see below)
vartypetextNullableParameter type (bool, enum, integer, real, or string)
sourcetextNullableSource of the current parameter value
min_valtextNullableMinimum allowed value of the parameter (null for non-numeric values)
max_valtextNullableMaximum allowed value of the parameter (null for non-numeric values)
enumvalstext[]NullableAllowed values of an enum parameter (null for non-enum values)
boot_valtextNullableParameter value assumed at server startup if the parameter is not otherwise set
reset_valtextNullableValue that RESET would reset the parameter to in the current session
sourcefiletextNullableConfiguration file the current value was set in (null for values set from sources other than configuration files, or when examined by a user who neither is a superuser nor has privileges of pg_read_all_settings); helpful when using include directives in configuration files
sourcelineint4NullableLine number within the configuration file the current value was set at (null for values set from sources other than configuration files, or when examined by a user who neither is a superuser nor has privileges of pg_read_all_settings).
pending_restartboolNullabletrue if the value has been changed in the configuration file but needs a restart; or false otherwise.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:bfe6db6dd45a4cd42bfa3939bba2d3669e998f86e4d403843dd31f6d8b4db30f

Text language: en · catalog-bilingual-repair:bfe6db6dd45a4cd42bfa3939bba2d3669e998f86e4d403843dd31f6d8b4db30f