Prefer argument name over "$n" for the refname of a plpgsql argument.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/pl_comp.c | modified | +8 −3 |
| src/test/regress/expected/plpgsql.out | modified | +11 −0 |
| src/test/regress/sql/plpgsql.sql | modified | +9 −0 |
Discussion
- proposal - using names as primary names of plpgsql function parameters instead $ based names 11 messages · 2017-05-13 → 2017-09-12