postgresql/src/backend/access
Thomas Munro 7897e3bb90 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
2020-06-16 16:59:07 +12:00
..
brin Implement operator class parameters 2020-03-30 19:17:23 +03:00
common Fix some comments referring to past features 2020-06-15 21:18:14 +09:00
gin Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
gist Fix buffile.c error handling. 2020-06-16 16:59:07 +12:00
hash Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
heap Improve comments for [Heap]CheckForSerializableConflictOut(). 2020-06-12 10:55:38 +12:00
index Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
nbtree Silence _bt_check_unique compiler warning. 2020-06-13 09:33:33 -07:00
rmgrdesc Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
spgist Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
table Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Fix locking bugs that could corrupt pg_control. 2020-06-08 13:57:24 +12:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00