Re: Command Triggers

Dimitri Fontaine <dimitri@2ndquadrant.fr>

From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Dimitri Fontaine <dimitri@2ndquadrant.fr>, Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org, Greg Smith <greg@2ndquadrant.com>, Bruce Momjian <bruce@momjian.us>, Alvaro Herrera <alvherre@commandprompt.com>
Date: 2012-01-14T21:46:18Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> But on the flip side, I think we're generally a bit more flexible
> about exposing things via C than through the procedural languages.

So we could still expose the parsetree of the current command.  I wonder
if it's already possible to get that from a C coded trigger, but I'll
admit I'm yet to code a trigger in C.  Will look into that.

Then as Andres proposed, a new function would be available to get the
value, we're not changing the trigger procedure function API in case the
language is C…

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support