Re: Something's been bugging me - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Something's been bugging me
Date
Msg-id 3513.1191078093@sss.pgh.pa.us
Whole thread Raw
In response to Something's been bugging me  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Something's been bugging me
Re: Something's been bugging me
List pgsql-hackers
Gregory Stark <stark@enterprisedb.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Temporarily modify tsearch regression tests to suppress notice
Next
From: Gregory Stark
Date:
Subject: Re: Something's been bugging me