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

From Vignesh Raghunathan
Subject Re: Using HeapTuple.t_len to verify size of tuple
Date
Msg-id CAD_AmVghC5SsjmAxm92XoH8rbAK=B9xmNuhsBv+10YY_ARaecg@mail.gmail.com
Whole thread Raw
In response to Re: Using HeapTuple.t_len to verify size of tuple  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
You mean "even if relacl is not null"?  Sounds improbable: AFAIR, pg_class
tuples are built with heap_form_tuple, same as anything else.

                        regards, tom lane

I am sorry. It was a bug in my code. I did not add the size of the tuple's header field to the off variable before comparing it with t_len. Thank you for the help.

  

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Custom Scans and private data
Next
From: Michael Paquier
Date:
Subject: Re: Commitfest remaining "Needs Review" items