pg_shdescription
The catalog pg_shdescription stores optional descriptions (comments) for shared database objects. Descriptions can be manipulated with the COMMENT command and viewed with psql's \d commands. See also pg_description, which performs a similar function for descriptions involving objects within a single database. Unlike most system catalogs, pg_shdescription is shared across all databases of a cluster: there is only one copy of pg_shdescription 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
- objoid, classoid, description
- runtime verified
- false
- source
- english-manual
Definition PG 18
The catalog pg_shdescription stores optional descriptions (comments) for shared database objects. Descriptions can be manipulated with the COMMENT command and viewed with psql's \d commands. See also pg_description, which performs a similar function for descriptions involving objects within a single database. Unlike most system catalogs, pg_shdescription is shared across all databases of a cluster: there is only one copy of pg_shdescription per cluster, not one per database.
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| objoid | oid | Not null | The OID of the object this description pertains to |
| classoid | oid | Not null | The OID of the system catalog this object appears in |
| description | text | Not null | Arbitrary text that serves as the description of this object |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:ef3c8d82515e9910521a6ff000e02899a54578e248ae19c1c23cfd0aaec929a4
Text language: en · catalog-bilingual-repair:ef3c8d82515e9910521a6ff000e02899a54578e248ae19c1c23cfd0aaec929a4