From dfc0219f649d5450a5e4d491dab1eeb23ac5530a Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 16 Apr 2014 12:21:43 -0400 Subject: Add to_regprocedure() and to_regoperator(). These are natural complements to the functions added by commit 0886fc6a5c75b294544263ea979b9cf6195407d9, but they weren't included in the original patch for some reason. Add them. Patch by me, per a complaint by Tom Lane. Review by Tatsuo Ishii. --- doc/src/sgml/func.sgml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1759c8876c4..148f0bc2378 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -15293,10 +15293,18 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); to_regproc + + to_regprocedure + + to_regoper + + to_regoperator + + to_regtype @@ -15481,11 +15489,21 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); regproc get the oid of the named function + + to_regprocedure(func_name) + regprocedure + get the oid of the named function + to_regoper(operator_name) regoper get the oid of the named operator + + to_regoperator(operator_name) + regoperator + get the oid of the named operator + to_regtype(type_name) regtype @@ -15658,10 +15676,12 @@ SELECT collation for ('foo' COLLATE "de_DE"); The to_regclass, to_regproc, - to_regoper and to_regtype - translate relation, function, operator, and type names to objects of - type regclass, regproc, regoper and - regtype, respectively. These functions differ from a cast from + 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, + 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 to_regproc and to_regoper, if -- cgit v1.2.3