"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