]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix some BufFileRead() error reporting
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Jan 2023 08:20:44 +0000 (09:20 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Jan 2023 08:45:03 +0000 (09:45 +0100)
commitac01fa647f84e99f092eacbb74fe1744d4bcdd8b
tree83ea22a28c165d10b51afd1d7b214c052e6d827b
parentdb9127c58cbaa748d00055ce10c6bf50a7fbcc1e
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.kapila16@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f3501945-c591-8cc3-5ef0-b72a2e0eaa9c@enterprisedb.com
src/backend/backup/backup_manifest.c
src/backend/replication/logical/worker.c