pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Prefer argument name over "$n" for the refname of a plpgsql argu
Date: Mon, 11 Sep 2017 20:24:55 +0000
Message-ID: <E1drVGJ-0000gs-SE@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Prefer argument name over "$n" for the refname of a plpgsql argument.

If a function argument has a name, use that as the "refname" of the
PLpgSQL_datum representing the argument, instead of $n as before.
This allows better error messages in some cases.

Pavel Stehule, reviewed by Jeevan Chalke

Discussion: https://postgr.es/m/CAFj8pRB9GyU2U1Sb2ssgP26DZ_yq-FYDfpvUvGQ=k4R=yOPVjg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c          | 11 ++++++++---
src/test/regress/expected/plpgsql.out | 11 +++++++++++
src/test/regress/sql/plpgsql.sql      |  9 +++++++++
3 files changed, 28 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1drVGJ-0000gs-SE@gemulon.postgresql.org>
Permalink:  ../E1drVGJ-0000gs-SE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1drVGJ-0000gs-SE@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Prefer argument name over "$n" for the refname of a plpgsql argu
  In-Reply-To: <E1drVGJ-0000gs-SE@gemulon.postgresql.org>
  References: <E1drVGJ-0000gs-SE@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