Add parse location to IndexElem.
Tom Lane <tgl@sss.pgh.pa.us>
Add parse location to IndexElem. This patch mostly just fills in the field, although a few error reports in resolve_unique_index_expr() are adjusted to use it. The next commit will add more uses. catversion bump out of an abundance of caution: I'm not sure IndexElem can appear in stored rules, but I'm not sure it can't either. Author: Álvaro Herrera <alvherre@kurilemu.de> Co-authored-by: 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 Discussion: https://postgr.es/m/202512121327.f2zimsr6guso@alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootparse.y | modified | +1 −0 |
| src/backend/nodes/nodeFuncs.c | modified | +3 −0 |
| src/backend/parser/gram.y | modified | +5 −0 |
| src/backend/parser/parse_clause.c | modified | +4 −7 |
| src/backend/parser/parse_utilcmd.c | modified | +6 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/nodes/parsenodes.h | modified | +1 −0 |
| src/test/regress/expected/insert_conflict.out | modified | +3 −3 |
Discussion
- Error position support for ComputeIndexAttrs 7 messages · 2025-12-16 → 2026-01-04
- weird ON CONFLICT clauses 3 messages · 2025-11-27 → 2025-12-12