Re: Complete instruction in a trigger - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Complete instruction in a trigger
Date
Msg-id 41F8D214.9010707@archonet.com
Whole thread Raw
In response to Complete instruction in a trigger  (Wilton <wilton.wonrath@microwork.inf.br>)
List pgsql-sql
Wilton wrote:
> Hi...
> 
> People, i wanna know how can i know inside of a function whar the 
> trigger called, i mean which instruction SQL it called.
> 
> I do not wanna know if it´s a insert, update or delete (tp_op), i need 
> to know the complete instruction.
> 
> For example, i need to know something like this:
> 
> update phones set number = '9999-2222';
> 
> Do you know if maybe exists a tg_stantement?

No, and the situation isn't quite as simple as that. Think about 
foreign-keys with a cascading update.

What precisely are you trying to do?
--  Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Wilton
Date:
Subject: Complete instruction in a trigger
Next
From: "Andrei Bintintan"
Date:
Subject: Constraint on 2 column possible?