@@ -13930,6 +13930,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
13930
13930
<primary>pg_describe_object</primary>
13931
13931
</indexterm>
13932
13932
13933
+ <indexterm>
13934
+ <primary>pg_identify_object</primary>
13935
+ </indexterm>
13936
+
13933
13937
<indexterm>
13934
13938
<primary>pg_get_constraintdef</primary>
13935
13939
</indexterm>
@@ -14029,6 +14033,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
14029
14033
<entry><type>text</type></entry>
14030
14034
<entry>get description of a database object</entry>
14031
14035
</row>
14036
+ <row>
14037
+ <entry><literal><function>pg_identify_object(<parameter>catalog_id</parameter> <type>oid</>, <parameter>object_id</parameter> <type>oid</>, <parameter>object_sub_id</parameter> <type>integer</>)</function></literal></entry>
14038
+ <entry><parameter>type</> <type>text</>, <parameter>schema</> <type>text</>, <parameter>name</> <type>text</>, <parameter>identity</> <type>text</></entry>
14039
+ <entry>get identity of a database object</entry>
14040
+ </row>
14032
14041
<row>
14033
14042
<entry><literal><function>pg_get_constraintdef(<parameter>constraint_oid</parameter>)</function></literal></entry>
14034
14043
<entry><type>text</type></entry>
@@ -14273,12 +14282,30 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
14273
14282
</para>
14274
14283
14275
14284
<para>
14276
- <function>pg_describe_object</function> returns a description of a database
14285
+ <function>pg_describe_object</function> returns a textual description of a database
14277
14286
object specified by catalog OID, object OID and a (possibly zero) sub-object ID.
14287
+ This description is intended to be human-readable, and might be translated,
14288
+ depending on server configuration.
14278
14289
This is useful to determine the identity of an object as stored in the
14279
14290
<structname>pg_depend</structname> catalog.
14280
14291
</para>
14281
14292
14293
+ <para>
14294
+ <function>pg_identify_object</function> returns a row containing enough information
14295
+ to uniquely identify the database object specified by catalog OID, object OID and a
14296
+ (possibly zero) sub-object ID. This information is intended to be machine-readable,
14297
+ and is never translated.
14298
+ <parameter>type</> identifies the type of database object;
14299
+ <parameter>schema</> is the schema name that the object belongs in, or
14300
+ <literal>NULL</> for object types that do not belong to schemas;
14301
+ <parameter>name</> is the name of the object, quoted if necessary, only
14302
+ present if it can be used (alongside schema name, if pertinent) as an unique
14303
+ identifier of the object, otherwise <literal>NULL</>;
14304
+ <parameter>identity</> is the complete object identity, with the precise format
14305
+ depending on object type, and each part within the format being
14306
+ schema-qualified and quoted as necessary.
14307
+ </para>
14308
+
14282
14309
<para>
14283
14310
<function>pg_typeof</function> returns the OID of the data type of the
14284
14311
value that is passed to it. This can be helpful for troubleshooting or
0 commit comments