+
+
+
+
+
+
lists functions that
extract information from the system catalogs.
regtype
get the OID of the named type
+ |
+
to_regnamespace(schema_name)
+ regnamespace
+ get the OID of the named schema
+
+ |
+ regrole
+ get the OID of the named role
+
The to_regclass, to_regproc,
to_regprocedure, to_regoper,
- to_regoperator, and to_regtype
- functions translate relation, function, operator, and type names to objects
- of type regclass>, regproc>, regprocedure,
- regoper>, regoperator, and regtype>,
+ to_regoperator, to_regtype,
+ to_regnamespace, and to_regrole
+ functions translate relation, function, operator, type, schema, and role
+ names to objects of
+ type regclass>, regproc>, regprocedure,
+ regoper>, regoperator, regtype>,
+ regnamespace>, and regrole>
respectively. These functions differ from a cast from
text in that they don't accept a numeric OID, and that they return null
rather than throwing an error if the name is not found (or, for