git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4c5cf54) | patch
Fix buffile.c error handling.
2020年6月16日 01:50:56 +0000 (13:50 +1200)
2020年6月16日 04:59:07 +0000 (16:59 +1200)
commit 7897e3bb902c557412645b82120f4d95f7474906
Fix buffile.c error handling.

Convert buffile.c error handling to use ereport. This fixes cases where
I/O errors were indistinguishable from EOF or not reported. Also remove
"%m" from error messages where errno would be bogus. While we're
modifying those strings, add block numbers and short read byte counts
where appropriate.

Back-patch to all supported releases.

Reported-by: Amit Khandekar <amitdkhan.pg@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGJE04G%3D8TLK0DLypT_27D9dR8F1RQgNp0jK6qR0tZGWOw%40mail.gmail.com
src/backend/access/gist/gistbuildbuffers.c diff | blob | blame | history
src/backend/executor/nodeHashjoin.c diff | blob | blame | history
src/backend/replication/backup_manifest.c diff | blob | blame | history
src/backend/storage/file/buffile.c diff | blob | blame | history
src/backend/utils/sort/logtape.c diff | blob | blame | history
src/backend/utils/sort/sharedtuplestore.c diff | blob | blame | history
src/backend/utils/sort/tuplestore.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /