pgsql: Include error location in errors from ComputeIndexAttrs().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Include error location in errors from ComputeIndexAttrs().
Date: 2026-01-04 19:16:33
Message-ID: E1vcTaa-004UdF-1i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Include error location in errors from ComputeIndexAttrs().

Make use of IndexElem's new location field to localize these
errors better.

Author: jian he <jian(dot)universality(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/CACJufxH3OgXF1hrzGAaWyNtye2jHEmk9JbtrtGv-KJK6tsGo5w@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/bootstrap/bootparse.y | 6 ++-
src/backend/commands/indexcmds.c | 61 +++++++++++++++-------
src/backend/commands/tablecmds.c | 9 ++--
src/backend/tcop/utility.c | 3 +-
src/include/commands/defrem.h | 3 +-
src/test/regress/expected/alter_table.out | 4 ++
src/test/regress/expected/collate.icu.utf8.out | 2 +
src/test/regress/expected/collate.linux.utf8.out | 2 +
src/test/regress/expected/collate.out | 2 +
.../regress/expected/collate.windows.win1252.out | 2 +
src/test/regress/expected/sqljson_queryfuncs.out | 56 ++++++++++++++++++++
11 files changed, 123 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-01-04 23:14:12 pgsql: Allow role created by new test to log in on Windows.
Previous Message Heikki Linnakangas 2026-01-04 18:05:59 pgsql: Fix partial read handling in pg_upgrade's multixact conversion