Re: Detection of nested function calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Detection of nested function calls
Дата
Msg-id 5673.1382978548@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Detection of nested function calls  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Detection of nested function calls  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Oct 28, 2013 at 11:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The idea I'm thinking about at the moment is that toast tokens of this
>> sort might each contain a function pointer to the required flattening
>> function.

> This might be OK, but it bloats the in-memory representation.  For
> small data types like numeric that might well be significant.

Meh.  If you don't include a function pointer you will still need the OID
of the datatype or the decompression function, so it's not like omitting
it is free.  In any case, the design target here is for data values that
are going to be quite large, so an extra 4 bytes or whatever in the
reference object doesn't really seem to me to be something to stress over.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: RULE regression test fragility?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Detection of nested function calls