Support named and default arguments in CALL
Peter Eisentraut <peter_e@gmx.net>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/functioncmds.c | modified | +21 −14 |
| src/backend/optimizer/util/clauses.c | modified | +1 −3 |
| src/include/optimizer/clauses.h | modified | +4 −1 |
| src/pl/plpgsql/src/expected/plpgsql_call.out | modified | +87 −0 |
| src/pl/plpgsql/src/pl_exec.c | modified | +27 −10 |
| src/pl/plpgsql/src/sql/plpgsql_call.sql | modified | +74 −0 |
| src/test/regress/expected/create_procedure.out | modified | +25 −0 |
| src/test/regress/sql/create_procedure.sql | modified | +19 −0 |