Re: Use WaitLatch for {pre, post}_auth_delay instead of pg_usleep

Поиск
Список
Период
Сортировка
От Bossart, Nathan
Тема Re: Use WaitLatch for {pre, post}_auth_delay instead of pg_usleep
Дата
Msg-id 1863E868-AD2E-4BEB-A9A6-DFD9A231C657@amazon.com
обсуждение исходный текст
Ответ на Re: Use WaitLatch for {pre, post}_auth_delay instead of pg_usleep  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On 7/26/21, 10:34 PM, "Bharath Rupireddy" <bharath.rupireddyforpostgres@gmail.com> wrote:
> PSA v3 patch.

LGTM.  The pre/post_auth_delay parameters seem to work as intended,
and they are responsive to postmaster crashes.  I didn't find any
examples of calling WaitLatch() without WL_LATCH_SET, but the function
appears to have support for that.  (In fact, it just sets the latch
variable to NULL in that case, so perhaps we should replace MyLatch
with NULL in the patch.)  I do see that WaitLatchOrSocket() is
sometimes called without WL_LATCH_SET, though.

I am marking this patch as ready-for-committer.

Nathan


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Minimal logical decoding on standbys
Следующее
От: Robert Haas
Дата:
Сообщение: Re: .ready and .done files considered harmful