pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq: Improve error message when parsing URI parameters and key
Date: Tue, 19 Nov 2024 04:28:38 +0000
Message-ID: <E1tDFqw-002V6V-HX@gemulon.postgresql.org> (raw)

libpq: Improve error message when parsing URI parameters and keywords

The error message showing up when parameters or keywords include too
many whitespaces was "trailing data found", which was confusing because
there was no hint about what was actually wrong.

Issue introduced in 430ce189fc45, hence there is no need for a
backpatch.

Author: Yushi Ogiwara
Reviewed-by: Fujii Masao, Tom Lane, Bruce Momjian
Discussion: https://postgr.es/m/645bd22a53c4da8a1bc7e1e52d9d3b52@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a3699daea2026de324ed7cc7115c36d3499010d3

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 4 +++-
src/interfaces/libpq/t/001_uri.pl | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)



Message-ID: <E1tDFqw-002V6V-HX@gemulon.postgresql.org>
Permalink:  ../E1tDFqw-002V6V-HX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tDFqw-002V6V-HX@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: libpq: Improve error message when parsing URI parameters and key
  In-Reply-To: <E1tDFqw-002V6V-HX@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