]> granicus.if.org Git - postgresql/commit
Allow referring to functions without arguments when unique
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Mar 2017 04:58:48 +0000 (23:58 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 15 Mar 2017 03:55:19 +0000 (23:55 -0400)
commitaefeb68741fb9456f14b4d690b0c646e532fea6b
tree518d41fa28d38baa67d6610faa49945b0b9688a0
parent3f6ea5fc8d9c6d7c85827c87a717be0016d06b89
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>
17 files changed:
doc/src/sgml/ref/alter_extension.sgml
doc/src/sgml/ref/alter_function.sgml
doc/src/sgml/ref/alter_opfamily.sgml
doc/src/sgml/ref/comment.sgml
doc/src/sgml/ref/create_cast.sgml
doc/src/sgml/ref/create_transform.sgml
doc/src/sgml/ref/drop_function.sgml
doc/src/sgml/ref/grant.sgml
doc/src/sgml/ref/revoke.sgml
doc/src/sgml/ref/security_label.sgml
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/parser/parse_func.c
src/include/nodes/parsenodes.h
src/test/regress/expected/create_function_3.out
src/test/regress/sql/create_function_3.sql