pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedsql functions and triggers
2+ messages / 2 participants
[nested] [flat]
* sql functions and triggers
@ 2001-03-07 14:03 Andrzej Roszkowski <andrzej.roszkowski@polcard.com.pl>
2001-03-07 14:28 ` Re: sql functions and triggers Karel Zak <zakkr@zf.jcu.cz>
0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Roszkowski @ 2001-03-07 14:03 UTC (permalink / raw)
To: pgsql-sql
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).
--
"Code reviews are like sex, just anyone can do it, but skill and training can
make you a lot better at it." - LJ
Thomas
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: sql functions and triggers
2001-03-07 14:03 sql functions and triggers Andrzej Roszkowski <andrzej.roszkowski@polcard.com.pl>
@ 2001-03-07 14:28 ` Karel Zak <zakkr@zf.jcu.cz>
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2001-03-07 14:28 UTC (permalink / raw)
To: Andrzej Roszkowski <andrzej.roszkowski@polcard.com.pl>; +Cc: pgsql-sql
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-03-07 14:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-07 14:03 sql functions and triggers Andrzej Roszkowski <andrzej.roszkowski@polcard.com.pl>
2001-03-07 14:28 ` Karel Zak <zakkr@zf.jcu.cz>
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