From: | Ivan Pavlov <ivan(dot)pavlov(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Trigger/Rules Order of operations |
Date: | 2008-12-16 15:31:49 |
Message-ID: | 1ac4b08a-02cd-45e4-91af-dd7e889bd2b1@k24g2000pri.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I can't answer your question but I think you may have a serious
database design issue at hand.
Why not try to accomplish your goals in a simpler way?
Regards,
Ivan Pavlov
On Dec 15, 12:49 pm, ket(dot)(dot)(dot)(at)ketema(dot)net (Ketema Harris) wrote:
> I am interested in finding out the pros, cons, pitfalls of using the
> following design:
>
> Manual insert into Table A.
> Table A has a BEFORE INSERT trigger that causes an insert to table B.
> Table B has an AFTER INSERT trigger that causes an insert back to
> table A (With different criteria not an endless loop)
>
> Table A will have its Before Trig fire again and this time the
> criteria causes it to finish with a return new.
>
> Will the second insert into table A commit before the first insert
> into table A? What order does the insert into table B finish up?
>
> Ketema J. Harriswww.ketema.net
> ket(dot)(dot)(dot)(at)ketema(dot)net
> ketemaj on iChat
>
> --
> Sent via pgsql-general mailing list (pgsql-gene(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | Angel | 2008-12-16 15:36:04 | Re: tup_returned/ tup_fetched |
Previous Message | Johan Nel | 2008-12-16 14:57:29 | Re: Lost password |