Re: fd.c: flush data problems on osx - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: fd.c: flush data problems on osx
Date
Msg-id CAB7nPqSSQEuVaXRa90rdeH5LMXGqNNrCy4D-XuiJ3TzC4aQDxw@mail.gmail.com
Whole thread Raw
In response to Re: fd.c: flush data problems on osx  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Responses Re: fd.c: flush data problems on osx  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Mar 21, 2016 at 9:09 PM, Stas Kelvich <s.kelvich@postgrespro.ru> wrote:
> On 21 Mar 2016, at 14:53, Andres Freund <andres@anarazel.de> wrote:
>> Hm. I think we should rather just skip calling pg_flush_data in the
>> directory case, that very likely isn't beneficial on any OS.
>
> Seems reasonable, changed.
>
>> I think we still need to fix the mmap() implementation to support the
>> offset = 0, nbytes = 0 case (via fseek(SEEK_END).
>
> It is already in this diff. I’ve added this few messages ago.

A similar change seems to be needed in initdb.c's pre_sync_fname.
--
Michael



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgbench - remove unused clientDone parameter
Next
From: David Rowley
Date:
Subject: Re: Performance improvement for joins where outer side is unique