Re: Tuple data

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Tuple data
Дата
Msg-id 3A3BCBF7.470B41EB@tm.ee
обсуждение исходный текст
Ответ на Tuple data  ("Michael Richards" <miker@interchange.ca>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Tuple data
Следующее
От: "Michael Richards"
Дата:
Сообщение: Re: Tuple data