]> granicus.if.org Git - postgresql/commit
Support named and default arguments in CALL
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 13 Apr 2018 21:06:28 +0000 (17:06 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 14 Apr 2018 13:13:53 +0000 (09:13 -0400)
commita8677e3ff6bb8ef78a9ba676faa647bba237b1c4
treec9be62db9de8d2431ad906fbff57da9c0b6d22e7
parent7c44c46deb495a2f3861f402d7f2109263e3d50a
Support named and default arguments in CALL

We need to call expand_function_arguments() to expand named and default
arguments.

In PL/pgSQL, we also need to deal with named and default INOUT arguments
when receiving the output values into variables.

Author: Pavel Stehule <pavel.stehule@gmail.com>
src/backend/commands/functioncmds.c
src/backend/optimizer/util/clauses.c
src/include/optimizer/clauses.h
src/pl/plpgsql/src/expected/plpgsql_call.out
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/sql/plpgsql_call.sql
src/test/regress/expected/create_procedure.out
src/test/regress/sql/create_procedure.sql