Re: Better support for whole-row operations and composite types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Better support for whole-row operations and composite types
Дата
Msg-id 12527.1080974564@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Better support for whole-row operations and composite  (Joe Conway <mail@joeconway.com>)
Ответы Re: Better support for whole-row operations and composite  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> Just for reference, what is arg[i] if it isn't a (TupleTableSlot *) 
> anymore -- is it just a HeapTuple?

No, it's a HeapTupleHeader pointer.  You need to reconstruct a HeapTuple
on top of that to work with heap_getattr and most other core backend
routines.  Also don't forget to ensure that you detoast the datum;
this is not useful at the moment but will be important Real Soon Now.
I added standard argument-fetch macros to fmgr.h to help with the
detoasting bit.
        regards, tom lane


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Better support for whole-row operations and composite
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Function to kill backend