mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Add new to_reg* functions for error-free OID lookups.
These functions won't throw an error if the object doesn't exist, or if (for functions and operators) there's more than one matching object. Yugo Nagata and Nozomi Anzai, reviewed by Amit Khandekar, Marti Raudsepp, Amit Kapila, and me.
This commit is contained in:
@@ -597,6 +597,7 @@ extern char *regexp_fixed_prefix(text *text_re, bool case_insensitive,
|
||||
/* regproc.c */
|
||||
extern Datum regprocin(PG_FUNCTION_ARGS);
|
||||
extern Datum regprocout(PG_FUNCTION_ARGS);
|
||||
extern Datum to_regproc(PG_FUNCTION_ARGS);
|
||||
extern Datum regprocrecv(PG_FUNCTION_ARGS);
|
||||
extern Datum regprocsend(PG_FUNCTION_ARGS);
|
||||
extern Datum regprocedurein(PG_FUNCTION_ARGS);
|
||||
@@ -607,6 +608,7 @@ extern Datum regoperin(PG_FUNCTION_ARGS);
|
||||
extern Datum regoperout(PG_FUNCTION_ARGS);
|
||||
extern Datum regoperrecv(PG_FUNCTION_ARGS);
|
||||
extern Datum regopersend(PG_FUNCTION_ARGS);
|
||||
extern Datum to_regoper(PG_FUNCTION_ARGS);
|
||||
extern Datum regoperatorin(PG_FUNCTION_ARGS);
|
||||
extern Datum regoperatorout(PG_FUNCTION_ARGS);
|
||||
extern Datum regoperatorrecv(PG_FUNCTION_ARGS);
|
||||
@@ -615,10 +617,12 @@ extern Datum regclassin(PG_FUNCTION_ARGS);
|
||||
extern Datum regclassout(PG_FUNCTION_ARGS);
|
||||
extern Datum regclassrecv(PG_FUNCTION_ARGS);
|
||||
extern Datum regclasssend(PG_FUNCTION_ARGS);
|
||||
extern Datum to_regclass(PG_FUNCTION_ARGS);
|
||||
extern Datum regtypein(PG_FUNCTION_ARGS);
|
||||
extern Datum regtypeout(PG_FUNCTION_ARGS);
|
||||
extern Datum regtyperecv(PG_FUNCTION_ARGS);
|
||||
extern Datum regtypesend(PG_FUNCTION_ARGS);
|
||||
extern Datum to_regtype(PG_FUNCTION_ARGS);
|
||||
extern Datum regconfigin(PG_FUNCTION_ARGS);
|
||||
extern Datum regconfigout(PG_FUNCTION_ARGS);
|
||||
extern Datum regconfigrecv(PG_FUNCTION_ARGS);
|
||||
|
||||
Reference in New Issue
Block a user