Re: Using HeapTuple.t_len to verify size of tuple

From: Vignesh Raghunathan <vignesh(dot)pgsql(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Using HeapTuple.t_len to verify size of tuple
Date: 2015-08-25 22:55:37
Message-ID: CAD_AmVghC5SsjmAxm92XoH8rbAK=B9xmNuhsBv+10YY_ARaecg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-08-25 23:07:00 Re: Commitfest remaining "Needs Review" items
Previous Message Andres Freund 2015-08-25 22:42:11 Re: Custom Scans and private data