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 a parse location field to struct FunctionParameter.
Date: Thu, 31 Oct 2024 20:09:38 +0000
Message-ID: <E1t6bUA-003L1Z-Nc@gemulon.postgresql.org> (raw)

Add a parse location field to struct FunctionParameter.

This allows an error cursor to be supplied for a bunch of
bad-function-definition errors that previously lacked one,
or that cheated a bit by pointing at the contained type name
when the error isn't really about that.

Bump catversion from an abundance of caution --- I don't think
this node type can actually appear in stored views/rules, but
better safe than sorry.

Jian He and Tom Lane (extracted from a larger patch by Jian,
with some additional work by me)

Discussion: https://postgr.es/m/CACJufxEmONE3P2En=jopZy1m=cCCUs65M4+1o52MW5og9oaUPA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/89e51abcb2905d6beaa09a7d3603d6882ac27033

Modified Files
--------------
src/backend/commands/functioncmds.c                | 47 ++++++++++++++--------
src/backend/nodes/nodeFuncs.c                      |  3 +-
src/backend/parser/gram.y                          | 17 +++++---
src/include/catalog/catversion.h                   |  2 +-
src/include/nodes/parsenodes.h                     |  1 +
.../test_ddl_deparse/expected/create_type.out      |  2 +
.../modules/test_ddl_deparse/expected/opfamily.out |  4 ++
.../modules/test_pg_dump/expected/test_pg_dump.out |  2 +
src/test/regress/expected/create_cast.out          |  2 +
src/test/regress/expected/create_procedure.out     |  4 ++
src/test/regress/expected/create_type.out          | 14 +++++++
src/test/regress/expected/equivclass.out           |  4 ++
src/test/regress/expected/expressions.out          |  4 ++
.../regress/expected/float4-misrounded-input.out   |  2 +
src/test/regress/expected/float4.out               |  2 +
src/test/regress/expected/float8.out               |  2 +
src/test/regress/expected/polymorphism.out         | 12 ++++++
17 files changed, 100 insertions(+), 24 deletions(-)



Message-ID: <E1t6bUA-003L1Z-Nc@gemulon.postgresql.org>
Permalink:  ../E1t6bUA-003L1Z-Nc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t6bUA-003L1Z-Nc@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 a parse location field to struct FunctionParameter.
  In-Reply-To: <E1t6bUA-003L1Z-Nc@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