pg_db_role_setting
The catalog pg_db_role_setting records the default values that have been set for run-time configuration variables, for each role and database combination. Unlike most system catalogs, pg_db_role_setting is shared across all databases of a cluster: there is only one copy of pg_db_role_setting per cluster, not one per database.
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
- catalog
- lang
- en
- measured attributes
- true
- metadata release
- 18.6
- runtime columns
- setdatabase, setrole, setconfig
- runtime verified
- false
- source
- english-manual
Definition PG 18
The catalog pg_db_role_setting records the default values that have been set for run-time configuration variables, for each role and database combination. Unlike most system catalogs, pg_db_role_setting is shared across all databases of a cluster: there is only one copy of pg_db_role_setting per cluster, not one per database.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| setdatabase | oid | Not null | The OID of the database the setting is applicable to, or zero if not database-specific |
| setrole | oid | Not null | The OID of the role the setting is applicable to, or zero if not role-specific |
| setconfig | text[] | Nullable | Defaults for run-time configuration variables |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:66ab44159fe4a8318c62193a7f3d9d2162fe24ce7690e9560789e623006c7a05
Text language: en · catalog-bilingual-repair:66ab44159fe4a8318c62193a7f3d9d2162fe24ce7690e9560789e623006c7a05