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: Fix erroneous error reports in snapbuild.c.
Date: Tue, 12 Feb 2019 06:13:17 +0000
Message-ID: <E1gtRJl-0002zN-NT@gemulon.postgresql.org> (raw)

Fix erroneous error reports in snapbuild.c.

It's pretty unhelpful to report the wrong file name in a complaint
about syscall failure, but SnapBuildSerialize managed to do that twice
in a span of 50 lines.  Also fix half a dozen missing or poorly-chosen
errcode assignments; that's mostly cosmetic, but still wrong.

Noted while studying recent failures on buildfarm member nightjar.
I'm not sure whether those reports are actually giving the wrong
filename, because there are two places here with identically
spelled error messages.  The other one is specifically coded not
to report ENOENT, but if it's this one, how could we be getting
ENOENT from open() with O_CREAT?  Need to sit back and await results.

However, these ereports are clearly broken from birth, so back-patch.

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/42baa60f6bc70cfffcba6a89a4b7a8b0a929b54d

Modified Files
--------------
src/backend/replication/logical/snapbuild.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gtRJl-0002zN-NT@gemulon.postgresql.org>
Permalink:  ../E1gtRJl-0002zN-NT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gtRJl-0002zN-NT@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: Fix erroneous error reports in snapbuild.c.
  In-Reply-To: <E1gtRJl-0002zN-NT@gemulon.postgresql.org>
  References: <E1gtRJl-0002zN-NT@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