Re: Tuple data - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Tuple data
Date
Msg-id 16606.976996623@sss.pgh.pa.us
Whole thread Raw
In response to Tuple data  ("Michael Richards" <miker@interchange.ca>)
List pgsql-hackers
"Michael Richards" <miker@interchange.ca> writes:
> I've still got something I can't seem to get. In my test cases with simple
> tables the first uint16 of tuple data after the header contained the length
> of the tuple.

That's not right --- AFAIR there is no length in the tuple data.  You
must use the length from the 'page item' pointer that points to this
tuple if you want to know the total tuple length.

If you were testing with tables containing single varlena columns, then
you may have seen the varlena datum's length word and taken it for total
length of the tuple --- but it's only total length of that one column.

Your example dump looks like F24D 0000 is userid, FFFF FFFF is folderid,
and 1300 0000 is the varlena length word for foldername.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Michael Richards"
Date:
Subject: Tuple data
Next
From: Hannu Krosing
Date:
Subject: Re: Tuple data