Summary
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.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_settings system view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
nametext
Run-time configuration parameter namesettingtext
Current value of the parameterunittext
Implicit unit of the parametercategorytext
Logical group of the parametershort_desctext
A brief description of the parameterextra_desctext
Additional, more detailed, description of the parametercontexttext
Context required to set the parameter’s value (see below)vartypetext
Parameter type (bool, enum, integer, real, or string)sourcetext
Source of the current parameter valuemin_valtext
Minimum allowed value of the parameter (null for non-numeric values)max_valtext
Maximum allowed value of the parameter (null for non-numeric values)enumvalstext[]
Allowed values of an enum parameter (null for non-enum values)boot_valtext
Parameter value assumed at server startup if the parameter is not otherwise setreset_valtext
Value that RESET would reset the parameter to in the current sessionsourcefiletext
Configuration 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 filessourcelineint4
Line 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_restartbool
true if the value has been changed in the configuration file but needs a restart; or false otherwise.
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_settings.