Re: Variable length varlena headers redux

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Variable length varlena headers redux
Дата
Msg-id 2715.1171392048@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Variable length varlena headers redux  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> Any such site is already broken, because with the proposed design, code
>> is only exposed to short-header datums if it is also exposed to toasted
>> datums.  

> Well the toaster doesn't run until we were about to put the tuple on disk. I
> was afraid there might be circumstances where data from in-memory tuples are
> returned and we use them without fearing them being toasted. In particular I
> was fearing the record/row handling in plpgsql.

True, which is another argument why datatype-specific functions should
never return short-header datums: there are places that call such
functions directly and probably expect an untoasted result.  I'm not
very concerned about stuff that's gone through a tuple though: in most
cases that could be expected to contain toasted values anyway.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Missing directory when building 8.2.3-base
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: add to ToDo, please