mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Replace LookupFuncNameTypeNames() with LookupFuncWithArgs()
The old function took function name and function argument list as separate arguments. Now that all function signatures are passed around as ObjectWithArgs structs, this is no longer necessary and can be replaced by a function that takes ObjectWithArgs directly. Similarly for aggregates and operators. Reviewed-by: Jim Nasby <Jim.Nasby@BlueTreble.com> Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -62,9 +62,9 @@ extern const char *func_signature_string(List *funcname, int nargs,
|
||||
|
||||
extern Oid LookupFuncName(List *funcname, int nargs, const Oid *argtypes,
|
||||
bool noError);
|
||||
extern Oid LookupFuncNameTypeNames(List *funcname, List *argtypes,
|
||||
extern Oid LookupFuncWithArgs(ObjectWithArgs *func,
|
||||
bool noError);
|
||||
extern Oid LookupAggNameTypeNames(List *aggname, List *argtypes,
|
||||
extern Oid LookupAggWithArgs(ObjectWithArgs *agg,
|
||||
bool noError);
|
||||
|
||||
extern void check_srf_call_placement(ParseState *pstate, int location);
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#define PARSE_OPER_H
|
||||
|
||||
#include "access/htup.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
#include "parser/parse_node.h"
|
||||
|
||||
|
||||
@@ -24,9 +25,7 @@ typedef HeapTuple Operator;
|
||||
extern Oid LookupOperName(ParseState *pstate, List *opername,
|
||||
Oid oprleft, Oid oprright,
|
||||
bool noError, int location);
|
||||
extern Oid LookupOperNameTypeNames(ParseState *pstate, List *opername,
|
||||
TypeName *oprleft, TypeName *oprright,
|
||||
bool noError, int location);
|
||||
extern Oid LookupOperWithArgs(ObjectWithArgs *oper, bool noError);
|
||||
|
||||
/* Routines to find operators matching a name and given input types */
|
||||
/* NB: the selected operator may require coercion of the input types! */
|
||||
|
||||
Reference in New Issue
Block a user