Re: Run-time posix_fallocate failures - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Run-time posix_fallocate failures
Date
Msg-id 22737.1373135039@sss.pgh.pa.us
Whole thread Raw
In response to Re: Run-time posix_fallocate failures  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Sat, 2013-07-06 at 10:33 -0400, Tom Lane wrote:
>> I think you'd better rejigger that patch so that it falls through to the
>> old implementation if posix_fallocate() fails.

> Do you mean "fails at all" or "fails with EINVAL"?

I'd be inclined to ignore the specific error code and just do it the
hard way for any failure.  Less code, and I see no particular advantage
to being pickier than that.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: planner not choosing fastest estimated plan
Next
From: Dimitri Fontaine
Date:
Subject: Re: in-catalog Extension Scripts and Control parameters (templates?)