↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Information Functions And Operators

shobj_description

Read the PG 18 manual

Returns the comment for a shared database object specified by its OID and the name of the containing system catalog.

Reading PG 18current·documented in 21 of 27 versions, 8.2 to 20

Signatures & examples

shobj_description ( object oid, catalog name ) → text
Returns the comment for a shared database object specified by its OID and the name of the containing system catalog. This is just like obj_description except that it is used for retrieving comments on shared objects (that is, databases, roles, and tablespaces). Some system catalogs are global to all databases within each cluster, and the descriptions for objects in them are stored globally as well.
Version history 2
  1. 12 → 13 changed
  2. 8.1 → 8.2 added

Definition snapshot: b7bd9cda · English manual source