mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add pg_describe_object function
This function is useful to obtain textual descriptions of objects as stored in pg_depend.
This commit is contained in:
@ -12847,6 +12847,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
||||
<entry><type>setof oid</type></entry>
|
||||
<entry>get the set of database OIDs that have objects in the tablespace</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>pg_describe_object(<parameter>catalog_id</parameter>, <parameter>object_id</parameter>, <parameter>object_sub_id</parameter>)</function>)</literal></entry>
|
||||
<entry><type>text</type></entry>
|
||||
<entry>get description of a database object</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>pg_typeof(<parameter>any</parameter>)</function></literal></entry>
|
||||
<entry><type>regtype</type></entry>
|
||||
@ -12940,6 +12945,13 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
||||
<structname>pg_class</> catalogs.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<function>pg_describe_object</function> returns a description of a database
|
||||
object specified by catalog OID, object OID and a (possibly zero) sub-object ID.
|
||||
This is useful to determine the identity of an object as stored in the
|
||||
<structname>pg_depend</structname> catalog.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<function>pg_typeof</function> returns the OID of the data type of the
|
||||
value that is passed to it. This can be helpful for troubleshooting or
|
||||
|
Reference in New Issue
Block a user