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_identify_object

Read PG 18 manual ↗

Returns a row containing enough information to uniquely identify the database object specified by catalog OID, object OID and sub-object ID.

Signatures & examples

pg_identify_object ( classid oid, objid oid, objsubid integer ) → record ( type text, schema text, name text, identity text )
Returns a row containing enough information to uniquely identify the database object specified by catalog OID, object OID and sub-object ID. This information is intended to be machine-readable, and is never translated. type identifies the type of database object; schema is the schema name that the object belongs in, or NULL for object types that do not belong to schemas; name is the name of the object, quoted if necessary, if the name (along with schema name, if pertinent) is sufficient to uniquely identify the object, otherwise NULL; identity is the complete object identity, with the precise format depending on object type, and each name within the format being schema-qualified and quoted as necessary. Undefined objects are identified with NULL values.
Version history 4
  1. PG 13 → 14changed
  2. PG 12 → 13changed
  3. PG 9.4 → 9.5changed
  4. PG 9.2 → 9.3added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source