Caching offsets of varlena attributes

From: Vignesh Raghunathan <vignesh(dot)pgsql(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Caching offsets of varlena attributes
Date: 2015-08-05 18:09:55
Message-ID: CAD_AmViFotr4CgrBSz5RNnC+FSWshAKnWrCC9VTCgHAGzkCzMQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

In the function heap_deform_tuple, there is a comment before caching
varlena attributes specifying that the offset will be valid for either an
aligned or unaligned value if there are no padding bytes. Could someone
please elaborate on this?

Also, why is it safe to call att_align_nominal if the attribute is not
varlena? Couldn't att_align_pointer be called for both cases? I am not able
to understand how att_align_nominal is faster.

Thanks,
Vignesh

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2015-08-05 18:22:55 Re: LWLock deadlock and gdb advice
Previous Message Alvaro Herrera 2015-08-05 18:09:03 Re: Freeze avoidance of very large table.