pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Better error messages for short reads/writes in SLRU
Date: Tue, 03 Sep 2019 06:38:02 +0000
Message-ID: <E1i52S2-00048r-Do@gemulon.postgresql.org> (raw)

Better error messages for short reads/writes in SLRU

This avoids getting a

    Could not read from file ...: Success.

for a short read or write (since errno is not set in that case).
Instead, report a more specific error messages.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6ef121647f7f29b59b86eca3dee9b90548245a3a

Modified Files
--------------
src/backend/access/transam/slru.c | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1i52S2-00048r-Do@gemulon.postgresql.org>
Permalink:  ../E1i52S2-00048r-Do@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i52S2-00048r-Do@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: peter@eisentraut.org
  Subject: Re: pgsql: Better error messages for short reads/writes in SLRU
  In-Reply-To: <E1i52S2-00048r-Do@gemulon.postgresql.org>
  References: <E1i52S2-00048r-Do@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