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 <[email protected]>
Co-authored-by: jian he <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: 
https://postgr.es/m/cacjufxh3ogxf1hrzgaawyntye2jhemk9jbtrtgv-kjk6tsg...@mail.gmail.com
Discussion: https://postgr.es/m/[email protected]

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(-)

Reply via email to