diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-03-09 23:58:48 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-03-14 23:55:19 -0400 |
commit | aefeb68741fb9456f14b4d690b0c646e532fea6b (patch) | |
tree | 518d41fa28d38baa67d6610faa49945b0b9688a0 /src/backend/nodes/copyfuncs.c | |
parent | 3f6ea5fc8d9c6d7c85827c87a717be0016d06b89 (diff) | |
download | postgresql-aefeb68741fb9456f14b4d690b0c646e532fea6b.tar.gz postgresql-aefeb68741fb9456f14b4d690b0c646e532fea6b.zip |
Allow referring to functions without arguments when unique
In DDL commands referring to an existing function, allow omitting the
argument list if the function name is unique in its schema, per SQL
standard.
This uses the same logic that the regproc type uses for finding
functions by name only.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index bfc2ac17165..25fd051d6ef 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -3067,6 +3067,7 @@ _copyObjectWithArgs(const ObjectWithArgs *from) COPY_NODE_FIELD(objname); COPY_NODE_FIELD(objargs); + COPY_SCALAR_FIELD(args_unspecified); return newnode; } |