Re: Tuple data - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: Tuple data
Date
Msg-id 3A3BCBF7.470B41EB@tm.ee
Whole thread Raw
In response to Tuple data  ("Michael Richards" <miker@interchange.ca>)
List pgsql-hackers
Michael Richards wrote:
> 
> Hi.
> 
> 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. In this case I can't seem to figure out what the value F24D
> stands for when I'd expect it's length to be 0800.

I'm not sure, but you may see some part of the NULL bitmap. 
IIRC it started at a quite illogical place, is suspect it was at byte 31
but 
it still reserved 4bytes for each 32 fields after byte 32

> The first tuple in my table has:
...
> Bitmap: 3F00 0000 00F2
> Attributes: 7

you should have only 4 bytes of bitmap for 7 real attributes

> Data Offset: 36

thats' right  32+4

----------
Hannu


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Tuple data
Next
From: "Michael Richards"
Date:
Subject: Re: Tuple data