Re: relID and tupleID - Mailing list pgsql-hackers

From Tom Lane
Subject Re: relID and tupleID
Date
Msg-id 19867.1050731350@sss.pgh.pa.us
Whole thread Raw
In response to relID and tupleID  ("S -" <nat_lazy@hotmail.com>)
List pgsql-hackers
"S -" <nat_lazy@hotmail.com> writes:
> Iam trying to figure out what value relID holds in postgresql. relID is 
> present is struct LOCKTAG in LOCK.h.

pg_class OID of a table.

> And also, in src/backend/storage/lmgr/readme mentions  'tupleID", I can't 
> find what tupleID represents and where its present in posgresql code

Looks like someone separated tupleid into page number (objId.blkno) and
item number (offnum) to avoid having alignment padding inside the LOCKTAG
struct.
        regards, tom lane



pgsql-hackers by date:

Previous
From: "S -"
Date:
Subject: relID and tupleID
Next
From: "S -"
Date:
Subject: Re: relID and tupleID