pgsql: Handle posix_fallocate() errors.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Handle posix_fallocate() errors.
Date: 2013-07-06 20:48:43
Message-ID: E1UvZPP-000338-31@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-07-07 00:46:31 pgsql: PL/Python: Make regression tests pass with older Python versions
Previous Message Szymon Guz 2013-07-06 20:14:55 Re: [COMMITTERS] pgsql: PL/Python: Convert numeric to Decimal