Help writing a trigger function please

From: Boris Popov <boris(at)procedium(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Help writing a trigger function please
Date: 2003-11-07 23:55:15
Message-ID: 33369468727.20031107155515@procedium.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello pgsql-novice,

I'd like to make 2 functions for 2 triggers to do the following:

CREATE TRIGGER propagade_insert
AFTER INSERT
ON originaltable
FOR EACH ROW
EXECUTE PROCEDURE propagade_insert();

where propagade_insert() would insert a copy of a row into a different
table say 'targettable' and the revese scenario to remove matching row
from 'targettable' when this row is deleted from 'originaltable'.

Any help will be greatly appreciated!

--
-Boris

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2003-11-08 23:14:16 Re: Questions, help!!
Previous Message Louise Cofield 2003-11-07 22:45:50 Re: Createdb Problems