Re: LOCK.tag(figuring out granularity of lock) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LOCK.tag(figuring out granularity of lock)
Date
Msg-id 12104.1060301946@sss.pgh.pa.us
Whole thread Raw
In response to LOCK.tag(figuring out granularity of lock)  ("Jenny -" <nat_lazy@hotmail.com>)
List pgsql-hackers
"Jenny -" <nat_lazy@hotmail.com> writes:
> how do we check whether blockId and tupleId of LOCK.tag are valid or 
> invalid?

Look at how LockRelation and LockPage (in
src/backend/storage/lmgr/lmgr.c) set up the tags --- it might be clearer
then.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: 7.4beta compile warning
Next
From: Larry Rosenman
Date:
Subject: threads/UnixWare