elog during holding a spinlock is safe?

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: elog during holding a spinlock is safe?
Date: 2010-09-15 02:27:34
Message-ID: AANLkTim7ewtxN6orG+8z5mHByyeKx7zvBvpJpUvv1zw+@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-09-15 02:30:46 Re: Pseudoconstant quals versus the join removal patch
Previous Message Robert Haas 2010-09-15 02:14:11 Re: Pseudoconstant quals versus the join removal patch