elog during holding a spinlock is safe? - Mailing list pgsql-hackers

From Fujii Masao
Subject elog during holding a spinlock is safe?
Date
Msg-id AANLkTim7ewtxN6orG+8z5mHByyeKx7zvBvpJpUvv1zw+@mail.gmail.com
Whole thread Raw
Responses Re: elog during holding a spinlock is safe?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Pseudoconstant quals versus the join removal patch
Next
From: Tom Lane
Date:
Subject: Re: Pseudoconstant quals versus the join removal patch