]> granicus.if.org Git - postgresql/commit
Handle posix_fallocate() errors.
authorJeff Davis <jdavis@postgresql.org>
Sat, 6 Jul 2013 20:46:04 +0000 (13:46 -0700)
committerJeff Davis <jdavis@postgresql.org>
Sat, 6 Jul 2013 20:46:04 +0000 (13:46 -0700)
commit5b571bb8c8d2bea610e01ae1ee7bc05adcfff528
tree209f4e18ef9130345e256c8ed777b6a53a6698d3
parent43c3aab123560b326bab894c44b667e2bdddc0e4
Handle posix_fallocate() errors.

On some platforms, posix_fallocate() is available but may still return
EINVAL if the underlying filesystem does not support it.  So, in case
of an error, fall through to the alternate implementation that just
writes zeros.

Per buildfarm failure and analysis by Tom Lane.
src/backend/access/transam/xlog.c