Re: C function to return tuple

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marios Vodas <mvodas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C function to return tuple
Date: 2010-09-26 16:52:34
Message-ID: 6789.1285519954@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marios Vodas <mvodas(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2010-09-26 17:07:32 Re: Additional index entries and table sorting
Previous Message Tom Lane 2010-09-26 16:42:22 Re: [COMMITTERS] pgsql: Still more tweaking of git_changelog.