Hi, In HEAD, OwnLatch can elog during holding the spinlock WalSnd->mutex. This seems to be unsafe because that elog would cause the walsender to exit without releasing the spinlock. Because of the spinlock being held, subsequent walsender would get stuck. I wonder if OwnLatch really needs to be protected by the spinlock.
Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers