Re: WAL insert delay settings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: WAL insert delay settings
Дата
Msg-id 0c791891-1ba0-da2e-5a70-17ec4a3678f1@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: WAL insert delay settings  (Andres Freund <andres@anarazel.de>)
Ответы Re: WAL insert delay settings  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 13/02/2019 16:40, Andres Freund wrote:
> On February 13, 2019 4:39:21 PM GMT+01:00, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
>> On 13/02/2019 13:18, Andres Freund wrote:
>>> But I don't think the way you did it is acceptable - we can't just
>> delay while holding buffer locks, in critical sections, while not
>> interruptible.
>>
>> The code I added to XLogInsertRecord() is not inside the critical
>> section.
> 
> Most callers do xlog insertions inside crit sections though.

Is it a problem that pg_usleep(CommitDelay) is inside a critical section?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: WAL insert delay settings
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Early WIP/PoC for inlining CTEs