From: Richard Huxton <dev@archonet.com>
To: Wilton <wilton.wonrath@microwork.inf.br>
Cc: pgsql-sql@postgresql.org
Subject: Re: Complete instruction in a trigger
Date: Thu, 27 Jan 2005 11:35:48 +0000
Message-ID: <41F8D214.9010707@archonet.com> (raw)
In-Reply-To: <41F8DCBB.3040707@microwork.inf.br>
References: <41F8DCBB.3040707@microwork.inf.br>
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
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-sql@postgresql.org
Cc: dev@archonet.com, wilton.wonrath@microwork.inf.br
Subject: Re: Complete instruction in a trigger
In-Reply-To: <41F8D214.9010707@archonet.com>
* 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