summaryrefslogtreecommitdiff
path: root/src/include/nodes
diff options
context:
space:
mode:
authorPeter Eisentraut2017-03-10 04:58:48 +0000
committerPeter Eisentraut2017-03-15 03:55:19 +0000
commitaefeb68741fb9456f14b4d690b0c646e532fea6b (patch)
tree518d41fa28d38baa67d6610faa49945b0b9688a0 /src/include/nodes
parent3f6ea5fc8d9c6d7c85827c87a717be0016d06b89 (diff)
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/include/nodes')
-rw-r--r--src/include/nodes/parsenodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index a44d2178e1c..d576523f6a8 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -1811,6 +1811,9 @@ typedef struct ObjectWithArgs
NodeTag type;
List *objname; /* qualified name of function/operator */
List *objargs; /* list of Typename nodes */
+ bool args_unspecified; /* argument list was omitted, so name must
+ * be unique (note that objargs == NIL means
+ * zero args) */
} ObjectWithArgs;
/*