Re: Better support for whole-row operations and composite types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Better support for whole-row operations and composite types
Date
Msg-id 12527.1080974564@sss.pgh.pa.us
Whole thread Raw
In response to Re: Better support for whole-row operations and composite  (Joe Conway <mail@joeconway.com>)
Responses Re: Better support for whole-row operations and composite  (Joe Conway <mail@joeconway.com>)
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: Re: Better support for whole-row operations and composite
Next
From: "Magnus Hagander"
Date:
Subject: Re: Function to kill backend