pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix publication syntax error message
Date: Wed, 10 May 2023 16:27:02 +0000
Message-ID: <E1pwmec-001StC-7W@gemulon.postgresql.org> (raw)

Fix publication syntax error message

There was some odd wording in corner-case gram.y error messages "some
error ... at or near", which appears to have been modeled after "syntax
error" messages.  However, they don't work that way, and they're just
wrong.  They're also uncovered by tests.  Remove the trailing words,
and also add tests.

They were introduced with 5a2832465fd8; backpatch to 15.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8e1d68c8f8eae96334db2f6633d2a61bcfb22f9a

Modified Files
--------------
src/backend/parser/gram.y                 | 4 ++--
src/test/regress/expected/publication.out | 9 +++++++++
src/test/regress/sql/publication.sql      | 4 ++++
3 files changed, 15 insertions(+), 2 deletions(-)



view thread (2+ messages)

Message-ID: <E1pwmec-001StC-7W@gemulon.postgresql.org>
Permalink:  ../E1pwmec-001StC-7W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pwmec-001StC-7W@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: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix publication syntax error message
  In-Reply-To: <E1pwmec-001StC-7W@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