| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | SunWuKung <Balazs(dot)Klein(at)t-online(dot)hu> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: triger and transaction |
| Date: | 2006-04-27 09:20:41 |
| Message-ID: | 20060427092040.GE29830@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, Apr 27, 2006 at 01:34:06AM -0700, SunWuKung wrote:
> If a transaction inserts rows to two tables will a procedure invoked by
> an "after insert on each row" trigger on one table see all the records
> inserted in the other table?
That's the idea.
> In other words - will the transaction run completely before the trigger
> is fired?
Well, it's the same transaction, but it's after the insert.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chris Velevitch | 2006-04-27 09:34:54 | Re: Mailing list setup issue |
| Previous Message | Martijn van Oosterhout | 2006-04-27 09:19:13 | Re: Mailing list setup issue |