Skip site navigation (1) Skip section navigation (2)

Re: Minor fix in lwlock.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Minor fix in lwlock.c
Date: 2005-04-08 05:48:09
Message-ID: 9474.1112939289@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
"Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)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

In response to

Responses

pgsql-patches by date

Next:From: Qingqing ZhouDate: 2005-04-08 06:02:50
Subject: Re: Minor fix in lwlock.c
Previous:From: Qingqing ZhouDate: 2005-04-08 05:29:15
Subject: Re: Minor fix in lwlock.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group