From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Michael Richards" <miker(at)interchange(dot)ca> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Tuple data |
Date: | 2000-12-16 19:57:03 |
Message-ID: | 16606.976996623@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Michael Richards" <miker(at)interchange(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2000-12-16 20:09:27 | Re: Tuple data |
Previous Message | Michael Richards | 2000-12-16 19:33:22 | Tuple data |