Re: fallocate / posix_fallocate for new WAL file creation (etc...)

Поиск
Список
Период
Сортировка
От Jon Nelson
Тема Re: fallocate / posix_fallocate for new WAL file creation (etc...)
Дата
Msg-id CAKuK5J34ecGN_JN_pgNAx9CCH2s=Oc7Faj0k8hwEd=pct88RBg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: fallocate / posix_fallocate for new WAL file creation (etc...)  (Stefan Drees <stefan@drees.name>)
Список pgsql-hackers
On Tue, Jun 11, 2013 at 12:49 PM, Stefan Drees <stefan@drees.name> wrote:
> On 2013-06-11 19:45 CEST, Greg Smith wrote:
>>
>> On 6/11/13 12:22 PM, Merlin Moncure wrote:
>>
>>> Personally I think this patch should go in regardless -- the concerns
>>> made IMNSHO are specious.
>>
>>
>> That's nice, but we have this process for validating whether features go
>> in or not that relies on review instead of opinions.
>>
> ;-) that's why I played with the test_fallocate.c, as it was easy to do and
> I understood, the author (of the patch) wanted to trigger some reviews ... I
> do not (yet) know anything about the core codes, so I leave this to the
> hackers. My review result was, that with newer gcc's you should specify an
> open mode flag as third argument of the fopen call, as only with the test
> tool nothing important found.

If you change line 68 to read:
           fd = open(filename, O_CREAT | O_EXCL | O_WRONLY, 0600);

then it should work just fine (assuming you have not already done so).


--
Jon



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stefan Drees
Дата:
Сообщение: Re: fallocate / posix_fallocate for new WAL file creation (etc...)
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: SPGist "triple parity" concept doesn't work