From: | mgermoni(at)uniautomation(dot)it |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | loop on trigger |
Date: | 2001-04-18 20:06:01 |
Message-ID: | 3ADE0FC9.30199.E49436@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
following your indication I found what I was looking for...Thank you.
I made a simple trigger/function that:
on insert check if a particular field is already on one table if not it
will procede to make the insert otherwise not.
But it goes on loop. Now just because I do not have experience, I'm
wondering if it possible to do it without going in loop, because if the
trigger is build up to get fired before the action and inside itself,
actualy, there is again the continuos of the action it is called again
and so on. There is a method to do without using the same table to
do the control and then the action? In other words interception an
insert to a specific table if the control is true to procede with the
action itself without hitting any loop?
TX
==============================
Marco GERMONI E-mail:mgermoni(at)uniautomation(dot)it
Field Engineering Manager
Uniautomation S.r.l. tel.+39-06-514221
Via A. Di Bonaiuto, 39 fax +39-06-51422311
I-00142 Roma Italy GSM +39-348-9997186
Internet: www.uniautomation.it
==============================
From | Date | Subject | |
---|---|---|---|
Next Message | The BOFH | 2001-04-18 20:15:00 | Question Two: DB access |
Previous Message | Bruce Momjian | 2001-04-18 19:54:08 | Re: JDBC setObject |