From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Something's been bugging me |
Date: | 2007-09-29 15:01:33 |
Message-ID: | 3513.1191078093@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> I'm wondering whether it doesn't make sense to lower VARATT_SHORT_MAX to 0x70
> to allow for at least a small number of constant values which could indicate
> some special type of datum. That could be used to indicate that a fixed size
> pointer like a toast pointer follows. That could be used for something like
> common value compression. [*]
I'm not for this because it would complicate the already-too-complicated
inner-loop tests for deciding which form of datum you're looking at.
The idea that I recall mentioning was to expend another byte in TOAST
pointers to make them self-identifying, ie, instead of 0x80 or 0x01
signaling something that *must* be a 17-byte toast pointer, that bit
pattern signals "something else" and the content of the next byte
lets you know what. So TOAST pointers would take 18 bytes instead of
17, and there would be room for additions of other sorts of pointers.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2007-09-29 15:20:30 | Re: Something's been bugging me |
Previous Message | Tom Lane | 2007-09-29 14:50:34 | Re: [COMMITTERS] pgsql: Temporarily modify tsearch regression tests to suppress notice |