]> granicus.if.org Git - postgresql/commit
Better error messages for short reads/writes in SLRU
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Sep 2019 06:26:55 +0000 (08:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Sep 2019 06:34:59 +0000 (08:34 +0200)
commit6ef121647f7f29b59b86eca3dee9b90548245a3a
tree5a21fbab644a7aabb4aa1d1527893bd46eab2803
parent5380719f931a101a6e83efc7a1664e42bd6bf6c3
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
src/backend/access/transam/slru.c