Re: Trigger - Mailing list pgsql-general

From Peter Childs
Subject Re: Trigger
Date
Msg-id Pine.LNX.4.58.0310230811060.11940@bluedragon.homelinux.net
Whole thread Raw
In response to Re: Trigger  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: Trigger  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Trigger  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general

On Wed, 22 Oct 2003, scott.marlowe wrote:

> On Wed, 22 Oct 2003, Peter Childs wrote:
>
> >     Is it possible to deferr a trigger until commit, Or to have the
> > trigger not occur if the transaction is rolled back? Like transaction.
> >     I think its possible since constraints use triggers and if so why
> > is this a standard feature.
> >     Also is there anyway of seeing what triggers exsist and what they
> > do? (psql \<somthing> or the like)
>
> A trigger inside a transaction should automagically roll back should the
> transaction fail, shouldn't it?
>
>

    Only if it only affects that database. If the trigger uses C to
tell an outside app whats going on, it will not get the truth.
    Background, we are trying to get the database to tell clients when
records get updated, deleted or inserted so that they can update there
on-screen displays without having to query the database every couple of
seconds which would put an unnessary strain on the database. Hence
producing quicker respose times.

Peter Childs

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Recomended FS
Next
From: Alex
Date:
Subject: Timestamps in Views