Include column name in build_attrmap_by_position's error reports. Formerly we only provided the column number, but it's frequently more useful to mention the column name. The input tupdesc often doesn't have useful column names, but the output tupdesc usually contains user-supplied names, so report that one.
Author: Marcos Pegoraro <[email protected]> Co-authored-by: jian he <[email protected]> Co-authored-by: Tom Lane <[email protected]> Co-authored-by: Erik Wienhold <[email protected]> Reviewed-by: Vladlen Popolitov <[email protected]> Discussion: https://postgr.es/m/cab-jlwanky28gjamdnmh1cjyo1b2zldr6uoa1-oy9g7pvl9...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/34c3c5ce1c0b2a27de212076c2e5aaa8e82fac31 Modified Files -------------- src/backend/access/common/attmap.c | 28 ++++++++++++-------------- src/pl/plpgsql/src/expected/plpgsql_record.out | 26 +++++++++++++++++------- src/pl/plpgsql/src/sql/plpgsql_record.sql | 8 ++++++++ src/test/regress/expected/plpgsql.out | 2 +- 4 files changed, 41 insertions(+), 23 deletions(-)
