pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add parse location to IndexElem.
Date: Sun, 04 Jan 2026 19:16:33 +0000
Message-ID: <E1vcTaa-004UdD-1d@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/62299bbd90d69e2273d3e2ba35af5953d20ca037

Modified Files
--------------
src/backend/bootstrap/bootparse.y             |  1 +
src/backend/nodes/nodeFuncs.c                 |  3 +++
src/backend/parser/gram.y                     |  5 +++++
src/backend/parser/parse_clause.c             | 11 ++++-------
src/backend/parser/parse_utilcmd.c            |  6 ++++++
src/include/catalog/catversion.h              |  2 +-
src/include/nodes/parsenodes.h                |  1 +
src/test/regress/expected/insert_conflict.out |  6 +++---
8 files changed, 24 insertions(+), 11 deletions(-)



Message-ID: <E1vcTaa-004UdD-1d@gemulon.postgresql.org>
Permalink:  ../E1vcTaa-004UdD-1d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vcTaa-004UdD-1d@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add parse location to IndexElem.
  In-Reply-To: <E1vcTaa-004UdD-1d@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox