Re: Minimal logical decoding on standbys
| От | Jeff Davis |
|---|---|
| Тема | Re: Minimal logical decoding on standbys |
| Дата | |
| Msg-id | 62a99b2751ee92e0761250fcf4a63593ae1d175c.camel@j-davis.com обсуждение исходный текст |
| Ответ на | Re: Minimal logical decoding on standbys (Jeff Davis <pgsql@j-davis.com>) |
| Список | pgsql-hackers |
On Fri, 2023-03-31 at 02:44 -0700, Jeff Davis wrote:
> Thank you, done. I think the nearby line was also wrong, returning
> true
> when there was no timeout. I combined the lines and got rid of the
> early return so it can check the list and timeout condition like
> normal. Attached.
On second (third?) thought, I think I was right the first time. It
passes the flag WL_EXIT_ON_PM_DEATH (included in the
ConditionVariableWaitSet), so a WL_POSTMASTER_DEATH event should not be
returned.
Also, I think the early return is correct. The current code in
ConditionVariableTimedSleep() still checks the wait list even if
WaitLatch() returns WL_TIMEOUT (it ignores the return), but I don't see
why it can't early return true. For a socket event in
ConditionVariableEventSleep() I think it should early return false.
Regards,
Jeff Davis
В списке pgsql-hackers по дате отправления: