Re: Something's been bugging me

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Something's been bugging me
Дата
Msg-id 3513.1191078093@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Something's been bugging me  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Something's been bugging me
Re: Something's been bugging me
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Temporarily modify tsearch regression tests to suppress notice
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Something's been bugging me