Re: Trigger

Поиск
Список
Период
Сортировка
От Peter Childs
Тема Re: Trigger
Дата
Msg-id Pine.LNX.4.58.0310230811060.11940@bluedragon.homelinux.net
обсуждение исходный текст
Ответ на Re: Trigger  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Trigger
Re: Trigger
Re: Trigger
Список 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 по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Recomended FS
Следующее
От: Alex
Дата:
Сообщение: Timestamps in Views