From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alastair Bell Turner <bell@tangent.co.za>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: SPI problem
Date: Tue, 29 Jun 2004 23:03:42 -0400
Message-ID: <2956.1088564622@sss.pgh.pa.us> (raw)
In-Reply-To: <12482.209.212.106.190.1088002081.squirrel@mail.tangent.co.za>
References: <12482.209.212.106.190.1088002081.squirrel@mail.tangent.co.za>
"Alastair Bell" Turner "" <bell@tangent.co.za> writes:
> I'm trying to build a c trigger with the Server Programming Interface and
> not having a lot of joy.
I think what you need to return from a trigger is PointerGetDatum() of a
HeapTuple. TupleGetDatum is a different animal that is *not* used for
trigger results, for mostly-historical reasons.
There are several working examples in the contrib/ modules.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, bell@tangent.co.za
Subject: Re: SPI problem
In-Reply-To: <2956.1088564622@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox