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

From mark@mark.mielke.cc
Subject Re: Plan for compressed varlena headers
Date
Msg-id 20070215173918.GA23446@mark.mielke.cc
Whole thread Raw
In response to Re: Plan for compressed varlena headers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Feb 15, 2007 at 10:42:49AM -0500, Tom Lane wrote:
> > #define VARDATA_4B(PTR)         ((PTR)->va_4byte.va_data)
> > #define VARDATA_2B(PTR)         ((PTR)->va_2byte.va_data)
> > #define VARDATA_1B(PTR)         ((PTR)->va_1byte.va_data)
> I thought we had abandoned the 2-byte-header variant?  Maybe you need to
> start a separate thread about exactly which of the bit-level proposals
> you want to implement.  There were quite a few tradeoffs discussed in
> the previous thread IIRC.

I agreed with Tom in the last thread. The 2 byte case doesn't seem like
good value for the return.

Simpler analysis results in easier to optimize code for the compiler,
and less complexity stored on disk.

Please remove 2B. :-)

Cheers,
mark

-- 
mark@mielke.cc / markm@ncf.ca / markm@nortel.com     __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada
 One ring to rule them all, one ring to find them, one ring to bring them all                      and in the darkness
bindthem...
 
                          http://mark.mielke.cc/



pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Plan for compressed varlena headers
Next
From: oliver rombaoa
Date:
Subject: automatic password for pg_dump to be used for a batch file in vb6