pgsql: Fix some BufFileRead() error reporting

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix some BufFileRead() error reporting
Date: 2023-01-16 09:08:57
Message-ID: E1pHLU9-003vjp-3u@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix some BufFileRead() error reporting

Remove "%m" from error messages where errno would be bogus. Add short
read byte counts where appropriate.

This is equivalent to what was done in
7897e3bb902c557412645b82120f4d95f7474906, but some code was apparently
developed concurrently to that and not updated accordingly.

Reviewed-by: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/f3501945-c591-8cc3-5ef0-b72a2e0eaa9c(at)enterprisedb(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1561612e3bf3264c31618b9455d0c1003b9271ec

Modified Files
--------------
src/backend/backup/backup_manifest.c | 3 ++-
src/backend/replication/logical/worker.c | 33 ++++++++++++++++++--------------
2 files changed, 21 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-01-16 10:15:55 pgsql: Add BufFileRead variants with short read and EOF detection
Previous Message Michael Paquier 2023-01-16 07:32:47 pgsql: Refactor code in charge of running shell-based recovery commands