Re: 8.2 beta blockers - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: 8.2 beta blockers
Date
Msg-id 20060918175417.GB47167@enterprisedb.com
Whole thread Raw
In response to Re: 8.2 beta blockers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 8.2 beta blockers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Sep 18, 2006 at 10:10:32AM -0400, Tom Lane wrote:
> "Jim C. Nasby" <jimn@enterprisedb.com> writes:
> > One problem I see with userlock is that you're asking for lock ID
> > conflicts unless you control everything on the system that's using
> > userlocks.
> 
> Well, the lock IDs already include the database OID under the hood,
> so you only need to control stuff within your database.  Beyond that,
> yeah, it's your responsibility...

Which is what I'm worried about for the future... that's why I'd like to
recommend to users some kind of best practice that allows for a system
in the future that doesn't require managing every single lock in the
system. I believe recommending that you not use locks with the first
int4 above 16k (and whatever the equivalent would be for int8) would be
a good way to do that, as it would allow for segregating locks by schema
OID.

It's important to recommend this now so that people don't write software
that will clobber other locks in the future.
-- 
Jim Nasby                                    jimn@enterprisedb.com
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


pgsql-hackers by date:

Previous
From: Gevik Babakhani
Date:
Subject: An Idea for OID conflicts
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Interesting CREATE TABLE AS misbehavior