Re: WalSndWakeup() and synchronous_commit=off

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WalSndWakeup() and synchronous_commit=off
Дата
Msg-id 8404.1338225113@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WalSndWakeup() and synchronous_commit=off  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: WalSndWakeup() and synchronous_commit=off  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> Does anybody have a better idea than to either call WalSndWakeup() at 
> essentially the wrong places or calling it inside a critical section?

> Tom, what danger do you see from calling it in a critical section?

My concern was basically that it might throw an error.  Looking at the
current implementation of SetLatch, it seems that's not possible, but
I wonder whether we want to lock ourselves into that assumption.

Still, if the alternatives are worse, maybe that's the best answer.
If we do that, though, let's add comments to WalSndWakeup and SetLatch
mentioning that they mustn't throw error.
        regards, tom lane


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

Предыдущее
От: Karl Denninger
Дата:
Сообщение: Re: [GENERAL] Attempting to do a rolling move to 9.2Beta (as a slave) fails
Следующее
От: Robert Haas
Дата:
Сообщение: Re: How could we make it simple to access the log as a table?