Re: Background triggers? - Mailing list pgsql-admin

From Greg Stark
Subject Re: Background triggers?
Date
Msg-id 407d949e0908191247g7b3696cdxac554cb10b374663@mail.gmail.com
Whole thread Raw
In response to Background triggers?  (Dick Visser <visser@terena.org>)
List pgsql-admin
On Wed, Aug 19, 2009 at 8:23 PM, Dick Visser<visser@terena.org> wrote:
>
> Is there a way to trigger stuff using NOTIFY/LISTEN, but WITHOUT an
> external client doing the magic? Some kind of internal Postgres function
> that listens for any changes, and then does the magic itself, without
> tying up any 'real' clients for the duration of that magic?

What do you mean "tying up"? Even if there was no client an internal
process would be "tying up" the same resources as if there was one.

In my experience it's a lot more flexible having an external process
connecting to the database anyways since it means you can use whatever
language you like, whatever libraries you like, etc. You can also use
other resources, close and open the connection, start and stop
transactions, etc. Anything within the database has a lot more
restrictions.

--
greg
http://mit.edu/~gsstark/resume.pdf

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Background triggers?
Next
From: Tino Schwarze
Date:
Subject: Re: Background triggers?