pgsql: Handle posix_fallocate() errors. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Handle posix_fallocate() errors.
Date
Msg-id E1UvZPP-000338-31@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5b571bb8c8d2bea610e01ae1ee7bc05adcfff528

Modified Files
--------------
src/backend/access/transam/xlog.c |   30 ++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)


pgsql-committers by date:

Previous
From: Michael Meskes
Date:
Subject: pgsql: Also escape double quotes for ECPG's #line statement.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: PL/Python: Make regression tests pass with older Python versions