pgsql: Prefer argument name over "$n" for the refname of a plpgsql argu

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prefer argument name over "$n" for the refname of a plpgsql argu
Date: 2017-09-11 20:24:55
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-09-11 20:45:03 pgsql: Constify numeric.c.
Previous Message Peter Eisentraut 2017-09-11 18:47:55 pgsql: doc: Document function pointer source code style