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: Improve new wording of libpq's connection failure messages.
Date: Thu, 21 Jan 2021 21:10:31 +0000
Message-ID: <E1l2hDr-0005Cs-Kt@gemulon.postgresql.org> (raw)

Improve new wording of libpq's connection failure messages.

"connection to server so-and-so failed:" seems clearer than the
previous wording "could not connect to so-and-so:" (introduced by
52a10224e), because the latter suggests a network-level connection
failure.  We're now prefixing this string to all types of connection
failures, for instance authentication failures; so we need wording
that doesn't imply a low-level error.

Per discussion with Robert Haas.

Discussion: https://postgr.es/m/CA+TgmobssJ6rS22dspWnu-oDxXevGmhMD8VcRBjmj-b9UDqRjw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/27a48e5a16ff2227ddf44ee717d9bcd89d22a7aa

Modified Files
--------------
src/bin/pg_dump/t/002_pg_dump.pl                   |  2 +-
.../ecpg/test/expected/connect-test5.stderr        |  4 +--
src/interfaces/ecpg/test/pg_regress_ecpg.c         |  8 +++---
src/interfaces/libpq/fe-connect.c                  | 31 +++++++++++-----------
4 files changed, 23 insertions(+), 22 deletions(-)



Message-ID: <E1l2hDr-0005Cs-Kt@gemulon.postgresql.org>
Permalink:  ../E1l2hDr-0005Cs-Kt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l2hDr-0005Cs-Kt@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve new wording of libpq's connection failure messages.
  In-Reply-To: <E1l2hDr-0005Cs-Kt@gemulon.postgresql.org>
  References: <E1l2hDr-0005Cs-Kt@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