Re: Trigger function interface

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger function interface
Date: 2016-01-07 04:21:38
Message-ID: 568DE7D2.6050705@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/6/16 7:03 PM, Tatsuo Ishii wrote:
> Is it possible to get the parse tree in a C trigger function which is
> invoked when DML (INSERT/UPDATE/DELETE against a view) is executed?

Yes, it's in fcinfo->flinfo->fn_expr.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2016-01-07 04:24:00 Re: COPY FROM STDIN
Previous Message Jim Nasby 2016-01-07 04:19:18 Re: Definitive answer: can functions use indexes?