| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Wilton <wilton(dot)wonrath(at)microwork(dot)inf(dot)br> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Complete instruction in a trigger |
| Date: | 2005-01-27 11:35:48 |
| Message-ID: | 41F8D214.9010707@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrei Bintintan | 2005-01-27 11:44:32 | Constraint on 2 column possible? |
| Previous Message | David Brown | 2005-01-27 03:50:25 | Re: OFFSET impact on Performance??? |