Re: LockObject patch - Mailing list pgsql-patches

From Tom Lane
Subject Re: LockObject patch
Date
Msg-id 27626.1103573371@sss.pgh.pa.us
Whole thread Raw
In response to LockObject patch  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: LockObject patch
List pgsql-patches
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.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: LockObject patch
Next
From: Alvaro Herrera
Date:
Subject: Re: LockObject patch