From: "Andres Freund" <>
I think we should do what the first paragraph in
outlined. As Tom says somewhere downthread that requires some code
review, but other than that it should get rid of a fair amount of

As mentioned in the mail I've just sent, there seems to be a problem around the latch and/or sinval catchup implementation.

Or, is it bad that many things are done in SIGUSR1 handler? If some processing in SIGUSR1 handler requires waiting on a latch, it hangs at WaitLatch(). Currently, the only processing in the backend which requires a latch may be to wait for the sync standby. However, in the future, the latch may be used for more tasks.

Another problem is, who knows WaitLatch() can return prematurely (before the actual waited-for event does SetLatch()) due to the SIGUSR1 issued for sinval catchup event?

How should we tackle these problem?


Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to