Re: C function to return tuple - Mailing list pgsql-hackers

From Tom Lane
Subject Re: C function to return tuple
Date
Msg-id 6789.1285519954@sss.pgh.pa.us
Whole thread Raw
In response to Re: C function to return tuple  (Marios Vodas <mvodas@gmail.com>)
Responses Re: C function to return tuple
List pgsql-hackers
Marios Vodas <mvodas@gmail.com> writes:
> //I need to get this working
>     *values[0] = e;*
> *    values[1] = i;*

Maybe you're missing HeapTupleGetDatum() there?  Just from a data type
cleanliness standpoint, you shouldn't ever assign something to Datum or
vice versa without applying the correct conversion macro.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Still more tweaking of git_changelog.
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Still more tweaking of git_changelog.