Jeff Davis <pgsql(at)j-davis(dot)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