Re: LockObject patch - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: LockObject patch
Date
Msg-id 200412202052.iBKKqvG05931@candle.pha.pa.us
Whole thread Raw
In response to Re: LockObject patch  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: LockObject patch  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-patches
Alvaro Herrera wrote:
> On Mon, Dec 20, 2004 at 03:09:31PM -0500, Tom Lane wrote:
> > Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> > > Here is the LockObject patch I was able to come up with.  It's almost
> > > the same patch that Rod Taylor published two years ago; basically, it
> > > expands LOCKTAG with a ClassId attribute, and provides a LockObject
> > > method to allow locking arbitrary objects.
> >
> > I wonder whether it wouldn't be possible to clean up the "XactLockTable"
> > kluge with this --- ie, instead of denoting transaction locks by a
> > special relation ID, denote them by a special class ID.  That might just
> > move the kluginess from one place to another, but it's worth thinking about.
>
> How about locking the special class InvalidOid?  We don't use that ATM
> AFAICS.

When we roll over OID's do we make sure we never return InvalidOid?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Guillaume LELARGE
Date:
Subject: Update for french pg_resetxlog.po file
Next
From: Alvaro Herrera
Date:
Subject: Re: LockObject patch