From: | Veres Lajos <lveres(at)vatera(dot)com> |
---|---|
To: | Erick Dennis <edennis(at)rootshell(dot)be> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: infinite trigger loop |
Date: | 2003-05-19 08:43:49 |
Message-ID: | Pine.LNX.4.44.0305191041170.29013-100000@www.vatera.hu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 16 May 2003, Erick Dennis wrote:
> I don't know what you trigger are doing, but, you can't check if the
> update was already made? before try to update it!.
Yes finally, i choosed this method. a bit better. but the code is at least
double size.
Thanks for your response.
>
>
> On Mon, 12 May 2003, Veres Lajos wrote:
>
> > Hello,
> >
> > I would like to synchronize 2 tables.
> > I think that maybe triggers are the best solution.
> > But, if i create two update trigger, when i update the first table first
> > trigger update the other, and the other trigger also try to update the
> > first table... and this is an infinite loop.
> > At now, in all two triggers i first drop the other and after the update
> > recreate.
> > I think that this is not the _best_ solution.
> > Can you show me a better solution?
> > thanks.
> >
> > PS:
> > please CC: for my personal e-mail address, I'm not subscribed.
> >
> > Veres Lajos
> > vlajos(at)ludens(dot)elte(dot)hu
> > +36 20 438 5909
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >
>
> --
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> mQGiBD3AVWoRBACodcxl03gUoJOqgzRfAheGLKeri8MdDy8F3fX/LwIihpWQMwh6
> goSEhp6f+VkINDJ3cX3OgTYVAIJLBrzzka2wbDHnTv9A7j8+VB4Nh2ZY9RrcZdxX
> g2z2NNdWVmxLPKTK+wbTXFsyLtj2IR0TASQdJKOL+VX6W7N/LYY2Mz4AXwCg8DC3
> 8cBi8P2ld48Un/Gvl1s/xHkD/j4r3WCsDGAzof2FiZ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 438 5909
From | Date | Subject | |
---|---|---|---|
Next Message | Francois Suter | 2003-05-19 09:04:15 | PostgreSQL presentation in France anyone? |
Previous Message | Joel Rees | 2003-05-19 06:34:22 | Re: FW: See that security pack from the Microsoft |