Re: Plan for compressed varlena headers

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Plan for compressed varlena headers
Date: 2007-02-14 19:07:56
Message-ID: 200702141907.l1EJ7uZ27006@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message mark 2007-02-14 19:21:38 Re: HOT WIP Patch - version 1
Previous Message bjarne 2007-02-14 19:06:45 Re: Writing triggers in C++