how to create a simple trigger

From: Peter Choe <choepete(at)mindspring(dot)com>
To: postgres <pgsql-general(at)postgresql(dot)org>
Subject: how to create a simple trigger
Date: 2001-03-14 20:56:02
Message-ID: 3AAFDAE2.91A13EA0@mindspring.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

i want to be able to create a trigger such that when i insert
information in one table, two other tables will also get a value
inserted. when i looked at the documentation for triggers and functions
(which i personally find daunting), i found out about pl/pgsql and
creating functions.

but how do i pass a parameter from the trigger to the function?

peter choe

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-03-14 22:02:17 Re: COPY problem
Previous Message Peter Eisentraut 2001-03-14 20:44:56 Re: Compiling 7.1 JDBC driver