mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +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:
@ -402,10 +402,7 @@ AlterOperator(AlterOperatorStmt *stmt)
|
||||
Oid joinOid;
|
||||
|
||||
/* Look up the operator */
|
||||
oprId = LookupOperNameTypeNames(NULL, stmt->opername,
|
||||
(TypeName *) linitial(stmt->operargs),
|
||||
(TypeName *) lsecond(stmt->operargs),
|
||||
false, -1);
|
||||
oprId = LookupOperWithArgs(stmt->opername, false);
|
||||
catalog = heap_open(OperatorRelationId, RowExclusiveLock);
|
||||
tup = SearchSysCacheCopy1(OPEROID, ObjectIdGetDatum(oprId));
|
||||
if (tup == NULL)
|
||||
|
Reference in New Issue
Block a user