From b8fab2411dbb08d918d5998ee78325d2a0549c7f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 3 Nov 2008 17:51:13 +0000 Subject: Add pg_typeof() function. Brendan Jurd --- doc/src/sgml/func.sgml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index df6045fc70e..7cfb1219889 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -11643,6 +11643,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); pg_tablespace_databases + + pg_typeof + + lists functions that extract information from the system catalogs. @@ -11766,6 +11770,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); setof oid get the set of database OIDs that have objects in the tablespace + + pg_typeof(any) + regtype + get the data type of any value + @@ -11848,6 +11857,12 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); pg_class catalogs. + + pg_typeof 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. + + col_description -- cgit v1.2.3