Re: Tuple data
От | Tom Lane |
---|---|
Тема | Re: Tuple data |
Дата | |
Msg-id | 16606.976996623@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Tuple data ("Michael Richards" <miker@interchange.ca>) |
Список | 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 по дате отправления: