From: | "Bob Pawley" <rjpawley(at)shaw(dot)ca> |
---|---|
To: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
Cc: | "John R Pierce" <pierce(at)hogranch(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Need help using function |
Date: | 2009-06-26 18:08:49 |
Message-ID: | A423940DB3B4481D93713640225A8C8F@desktop |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ok, it seem that is not what I am seeking.
I have a triggered function that works quite well on an insert into a table.
What I would like to do is trigger that same function when conditions are updated in an other table.
I'm trying to avoid having to copy the whole function over to an update trigger.
An other method would be to have the function triggered by a separate table and then insert (then delete) a value into that table to trigger the function - but I am hoping someone can come up with another way?
Bob
----- Original Message -----
From: Jonah H. Harris
To: Bob Pawley
Cc: John R Pierce ; pgsql-general(at)postgresql(dot)org
Sent: Friday, June 26, 2009 10:30 AM
Subject: Re: [GENERAL] Need help using function
On Fri, Jun 26, 2009 at 1:28 PM, Bob Pawley <rjpawley(at)shaw(dot)ca> wrote:
However, perhaps I don't understand the idea of a function.
Please review the manual for examples.
http://www.postgresql.org/docs/8.3/static/plpgsql.html
Specifically, http://www.postgresql.org/docs/8.3/static/plpgsql-structure.html
--
Jonah H. Harris, Senior DBA
myYearbook.com
From | Date | Subject | |
---|---|---|---|
Next Message | Gerhard Wiesinger | 2009-06-26 18:12:07 | Re: Problems with postgres online backup - restore |
Previous Message | Jonah H. Harris | 2009-06-26 17:30:46 | Re: Need help using function |