Re: Question about GetAttributeByNum(Name) ExecQual.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about GetAttributeByNum(Name) ExecQual.c
Дата
Msg-id 9284.1225369976@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Question about GetAttributeByNum(Name) ExecQual.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: Question about GetAttributeByNum(Name) ExecQual.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> GetAttributeByNum has first parameter as HeapTupleHeader,  but most functions 
> use Datum and after that they call DatumGetHeapTupleHeader. The difference is 
> that DatumGetHeapTupleHeader performs detoast on tuple(row type).

> Is it intention do not detoast in these functions or it is a bug?

You would certainly not want a tuple to get separately detoasted for
each attribute you pull from it.  So having detoasting here would be
the wrong thing IMHO.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Hot Standby: Caches and Locks
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: Question about GetAttributeByNum(Name) ExecQual.c