Re: Minor fix in lwlock.c - Mailing list pgsql-patches

From Tom Lane
Subject Re: Minor fix in lwlock.c
Date
Msg-id 9474.1112939289@sss.pgh.pa.us
Whole thread Raw
In response to Re: Minor fix in lwlock.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-patches
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> Another alternative might use PG_TRY/PG_CATCH to make sure that the
> semaphore is released. But seems this costs too much ...

I agree.  LWLockAcquire is a hot-spot already.

Maybe we *should* make it a PANIC.  Thoughts?

            regards, tom lane

pgsql-patches by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Minor fix in lwlock.c
Next
From: "Qingqing Zhou"
Date:
Subject: Re: Minor fix in lwlock.c