Re: Plan for compressed varlena headers - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Plan for compressed varlena headers
Date
Msg-id 200702141907.l1EJ7uZ27006@momjian.us
Whole thread Raw
In response to Plan for compressed varlena headers  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Plan for compressed varlena headers
List pgsql-hackers
Gregory Stark wrote:
> 2) Replace VARATT* macros to store and retrieve the toast bits in a manner
>    that will work for variable length headers. This either means storing the
>    bits at the least-significant position or using network byte order.
> 
>    If we want to allow storing >1 headers unaligned which I think would be
>    good then I still think we have to read them using bytewise lookups -- ie
>    by casting to (char*). That means network byte order or using the low order
>    bits is equally efficient.

I think the plan was to have the macro code conditional on big-little
endian.  We can deal with doing >1 headers unaligned at some future
date if we feel we need it, and the macros will make it transparent.

--  Bruce Momjian  <bruce@momjian.us>          http://momjian.us EnterpriseDB
http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Fixing insecure security definer functions
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: HOT WIP Patch - version 1