Re: Multiple row update with trigger - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: Multiple row update with trigger
Date
Msg-id 20070521190550.GA23573@KanotixBox
Whole thread Raw
In response to Multiple row update with trigger  (Derrick Betts <list@blueaxis.com>)
List pgsql-novice
Derrick Betts <list@blueaxis.com> schrieb:
> Does anyone have any good ideas as to how I might solve this problem?
> Perhaps even taking a completely different approach in some way?

Maybe with a RULE instead a TRIGGER. A Rule, with DO INSTEAD. For
example, a RULE like

create or replace rule my_rule as on update to my_table do instead update
my_table ...


I'm not sure, try it.
http://www.postgresql.org/docs/current/interactive/rules-update.html


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-novice by date:

Previous
From: Derrick Betts
Date:
Subject: Multiple row update with trigger
Next
From: Jon Sime
Date:
Subject: Re: Multiple row update with trigger