Re: Advisory locks seem rather broken - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Advisory locks seem rather broken
Date
Msg-id 201205032019.42680.andres@anarazel.de
Whole thread Raw
In response to Re: Advisory locks seem rather broken  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Thursday, May 03, 2012 06:12:04 PM Simon Riggs wrote:
> AFAICS you'd either use transactional or session level, but to use
> both seems bizarre. And if you really did need both, you can put a
> wrapper around the function to check whether a session level exists
> before you grant the transaction level lock, or vice versa.
I don't think at all that this is crazy. For queues it very well might make 
sense for a dequeuing side to hold a lock in a session mode while the putting 
side uses normal transaction scope (because its done inside a trigger or 
such).

Andres


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: "unexpected EOF" messages
Next
From: Tom Lane
Date:
Subject: Re: "unexpected EOF" messages