From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Gregory Stark <gsstark(at)mit(dot)edu>, Tom Lane <tgl(at)postgresql(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us> |
Subject: | Re: Variable length varlena headers redux |
Date: | 2007-02-13 14:46:40 |
Message-ID: | 200702131546.40789.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gregory Stark wrote:
> a) To have two sets of macros, one of which, VARATT_DATA and
> VARATT_SIZEP are for constructing new tuples and behaves exactly as
> it does now. So you always construct a four-byte header datum. Then
> in heap_form*tuple we check if you can use a shorter header and
> convert. VARDATA/VARSIZE would be for looking at existing datums and
> would interpret the header bits.
Has any thought been given to headers *longer* than four bytes? I don't
exactly recall a flood of field reports that one gigabyte per datum is
too little, but as long as the encoding of variable length data is
changed, one might as well prepare a little for the future.
Of course, that would put a dent into any plan that wants to normalize
the header to four bytes somewhere along the way.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-02-13 14:55:41 | Re: Foreign keys for non-default datatypes, redux |
Previous Message | Tom Lane | 2007-02-13 14:44:03 | Re: Variable length varlena headers redux |