aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/copyfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-12-28 12:00:00 -0500
committerPeter Eisentraut <peter_e@gmx.net>2017-03-06 13:31:47 -0500
commit550214a4efb214dfc9c2a475607deeeea69da858 (patch)
tree710809c370e339cad4faf9c79e187c87f8e2e138 /src/backend/nodes/copyfuncs.c
parent63ebd377a6ecd3388596c3ea958e813f23b5f4ae (diff)
downloadpostgresql-550214a4efb214dfc9c2a475607deeeea69da858.tar.gz
postgresql-550214a4efb214dfc9c2a475607deeeea69da858.zip
Add operator_with_argtypes grammar rule
This makes the handling of operators similar to that of functions and aggregates. Rename node FuncWithArgs to ObjectWithArgs, to reflect the expanded use. Reviewed-by: Jim Nasby <Jim.Nasby@BlueTreble.com> Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r--src/backend/nodes/copyfuncs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 05d8538717a..35fec878428 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -2954,13 +2954,13 @@ _copyGrantStmt(const GrantStmt *from)
return newnode;
}
-static FuncWithArgs *
-_copyFuncWithArgs(const FuncWithArgs *from)
+static ObjectWithArgs *
+_copyObjectWithArgs(const ObjectWithArgs *from)
{
- FuncWithArgs *newnode = makeNode(FuncWithArgs);
+ ObjectWithArgs *newnode = makeNode(ObjectWithArgs);
- COPY_NODE_FIELD(funcname);
- COPY_NODE_FIELD(funcargs);
+ COPY_NODE_FIELD(objname);
+ COPY_NODE_FIELD(objargs);
return newnode;
}
@@ -5274,8 +5274,8 @@ copyObject(const void *from)
case T_CommonTableExpr:
retval = _copyCommonTableExpr(from);
break;
- case T_FuncWithArgs:
- retval = _copyFuncWithArgs(from);
+ case T_ObjectWithArgs:
+ retval = _copyObjectWithArgs(from);
break;
case T_AccessPriv:
retval = _copyAccessPriv(from);