Caching offsets of varlena attributes - Mailing list pgsql-hackers

From Vignesh Raghunathan
Subject Caching offsets of varlena attributes
Date
Msg-id CAD_AmViFotr4CgrBSz5RNnC+FSWshAKnWrCC9VTCgHAGzkCzMQ@mail.gmail.com
Whole thread Raw
Responses Re: Caching offsets of varlena attributes  (Haribabu Kommi <kommi.haribabu@gmail.com>)
List 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

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Freeze avoidance of very large table.
Next
From: Jeff Janes
Date:
Subject: Re: LWLock deadlock and gdb advice