Include error location in errors from ComputeIndexAttrs().
Tom Lane <tgl@sss.pgh.pa.us>
Include error location in errors from ComputeIndexAttrs(). Make use of IndexElem's new location field to localize these errors better. Author: jian he <jian.universality@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CACJufxH3OgXF1hrzGAaWyNtye2jHEmk9JbtrtGv-KJK6tsGo5w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootparse.y | modified | +4 −2 |
| src/backend/commands/indexcmds.c | modified | +41 −20 |
| src/backend/commands/tablecmds.c | modified | +6 −3 |
| src/backend/tcop/utility.c | modified | +2 −1 |
| src/include/commands/defrem.h | modified | +2 −1 |
| src/test/regress/expected/alter_table.out | modified | +4 −0 |
| src/test/regress/expected/collate.icu.utf8.out | modified | +2 −0 |
| src/test/regress/expected/collate.linux.utf8.out | modified | +2 −0 |
| src/test/regress/expected/collate.out | modified | +2 −0 |
| src/test/regress/expected/collate.windows.win1252.out | modified | +2 −0 |
| src/test/regress/expected/sqljson_queryfuncs.out | modified | +56 −0 |
Discussion
- Error position support for ComputeIndexAttrs 7 messages · 2025-12-16 → 2026-01-04