Using HeapTuple.t_len to verify size of tuple - Mailing list pgsql-hackers

From Vignesh Raghunathan
Subject Using HeapTuple.t_len to verify size of tuple
Date
Msg-id CAD_AmVjPzQ=69Heea0x7rUtG9athG6y5GJOLkPqNLjFK31vyuA@mail.gmail.com
Whole thread Raw
Responses Re: Using HeapTuple.t_len to verify size of tuple  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: Re: One question about security label command
Next
From: Andres Freund
Date:
Subject: Re: 9.4 broken on alpha