pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support named and default arguments in CALL
Date: Sat, 14 Apr 2018 13:28:36 +0000
Message-ID: <E1f7LEK-0004LN-II@gemulon.postgresql.org> (raw)

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>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a8677e3ff6bb8ef78a9ba676faa647bba237b1c4

Modified Files
--------------
src/backend/commands/functioncmds.c            | 35 ++++++-----
src/backend/optimizer/util/clauses.c           |  4 +-
src/include/optimizer/clauses.h                |  5 +-
src/pl/plpgsql/src/expected/plpgsql_call.out   | 87 ++++++++++++++++++++++++++
src/pl/plpgsql/src/pl_exec.c                   | 37 ++++++++---
src/pl/plpgsql/src/sql/plpgsql_call.sql        | 74 ++++++++++++++++++++++
src/test/regress/expected/create_procedure.out | 25 ++++++++
src/test/regress/sql/create_procedure.sql      | 19 ++++++
8 files changed, 258 insertions(+), 28 deletions(-)



Message-ID: <E1f7LEK-0004LN-II@gemulon.postgresql.org>
Permalink:  ../E1f7LEK-0004LN-II@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f7LEK-0004LN-II@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Support named and default arguments in CALL
  In-Reply-To: <E1f7LEK-0004LN-II@gemulon.postgresql.org>
  References: <E1f7LEK-0004LN-II@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox