From: Karel Zak <zakkr@zf.jcu.cz>
To: Andrzej Roszkowski <andrzej.roszkowski@polcard.com.pl>
Cc: pgsql-sql@postgresql.org
Subject: Re: sql functions and triggers
Date: Wed, 7 Mar 2001 15:28:29 +0100
Message-ID: <20010307152829.B19065@ara.zf.jcu.cz> (raw)
In-Reply-To: <01030715035905.21680@thomas>
References: <01030715035905.21680@thomas>
On Wed, Mar 07, 2001 at 03:03:59PM +0100, Andrzej Roszkowski wrote:
> Hello!
>
> It is possible to pass ie. insert fields and values to sql function in
> trigger? I want to define a trigger on insert (select delete etc.) and log
> some values in different table(s).
Sure, see docs about SPI interface or you can try use RULEs for this.
Karel
--
Karel Zak <zakkr@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: zakkr@zf.jcu.cz, andrzej.roszkowski@polcard.com.pl
Subject: Re: sql functions and triggers
In-Reply-To: <20010307152829.B19065@ara.zf.jcu.cz>
References: <01030715035905.21680@thomas> <20010307152829.B19065@ara.zf.jcu.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox