↑↓ 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

pg_describe_object

Read the PG 18 manual

Returns a textual description of a database object identified by catalog OID, object OID, and sub-object ID (such as a column number within a table; the sub-object ID is zero when referring to a whole object).

Reading PG 18current·documented in 17 of 27 versions, 9.1 to 20

Signatures & examples

pg_describe_object ( classid oid, objid oid, objsubid integer ) → text
Returns a textual description of a database object identified by catalog OID, object OID, and sub-object ID (such as a column number within a table; the sub-object ID is zero when referring to a whole object). This description is intended to be human-readable, and might be translated, depending on server configuration. This is especially useful to determine the identity of an object referenced in the pg_depend catalog. This function returns NULL values for undefined objects.
Version history 4
  1. 13 → 14 changed
  2. 12 → 13 changed
  3. 9.4 → 9.5 changed
  4. 9.0 → 9.1 added

Definition snapshot: b7bd9cda · English manual source