diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1be9f90fe5e..11dd3bc6f9b 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -12848,6 +12848,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); <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> <entry>get the data type of any value</entry> @@ -12941,6 +12946,13 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); </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 dynamically constructing SQL queries. The function is declared as |