aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2010-11-18 16:33:48 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2010-11-18 17:06:19 -0300
commit6cc2deb86e9183262493a6537700ee305fb3e096 (patch)
tree26c512acccf84e9e7e6ec71594a427c42b83f388 /doc/src
parent48c348f86ce09c668af7cf271757c3f156f28344 (diff)
downloadpostgresql-6cc2deb86e9183262493a6537700ee305fb3e096.tar.gz
postgresql-6cc2deb86e9183262493a6537700ee305fb3e096.zip
Add pg_describe_object function
This function is useful to obtain textual descriptions of objects as stored in pg_depend.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml12
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