Re: Musings on Triggers - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Musings on Triggers
Date
Msg-id 20051206171656.GA97243@winnie.fuhr.org
Whole thread Raw
In response to Re: Musings on Triggers  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-novice
On Tue, Dec 06, 2005 at 05:36:45PM +0100, A. Kretschmer wrote:
> am  06.12.2005, um 10:49:31 -0500 mailte Joshua Kramer folgendes:
> > Can a trigger in a table in Database_A alter/insert data in a table in
> > Database_B?
>
> No, you can't. (except with dblink)

Or with procedural languages like PL/Perl that allow you to do just
about anything you want (connect to another database, send email,
etc.).  However, a drawback is that you don't get transactional
semantics: if you roll back the transaction there's no way to undo
the trigger's actions.

--
Michael Fuhr

pgsql-novice by date:

Previous
From: "Obe, Regina DND\\MIS"
Date:
Subject: How to see detailed plan of a funciton
Next
From:
Date:
Subject: Re: SQL Statement Help Needed