Using HeapTuple.t_len to verify size of tuple

Поиск
Список
Период
Сортировка
От Vignesh Raghunathan
Тема Using HeapTuple.t_len to verify size of tuple
Дата
Msg-id CAD_AmVjPzQ=69Heea0x7rUtG9athG6y5GJOLkPqNLjFK31vyuA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Using HeapTuple.t_len to verify size of tuple
Список pgsql-hackers
Hello,

Can the t_len field in HeapTuple structure be used to verify the length of the tuple?

That is, if I calculate the length from the contents of the tuple using data from pg_attribute for fixed length fields and the data from the header for varlena fields, should it always match the value stored in t_len?

Thanks,
VIgnesh

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: One question about security label command
Следующее
От: Andres Freund
Дата:
Сообщение: Re: 9.4 broken on alpha