Re: Can PostgreSQL notify a client that a trigger has - Mailing list pgsql-general

From Jeff Davis
Subject Re: Can PostgreSQL notify a client that a trigger has
Date
Msg-id 1163033039.31124.481.camel@dogma.v10.wvs
Whole thread Raw
In response to Can PostgreSQL notify a client that a trigger has fired?  ("Bill" <postgresql@dbginc.com>)
List pgsql-general
On Thu, 2006-11-09 at 00:39 +0000, Bill wrote:
> Does PostgreSQL have built in mechanism I can use to conditionally
> notify a client application that a trigger has fired? What I want is
> something along the line of the following pseudo code in a trigger.
>
> if <condition> then
>   raise client event
>

Yes, use LISTEN and NOTIFY. Probably it's easiest to write the trigger
in PL/pgSQL.

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: "Bill"
Date:
Subject: Can PostgreSQL notify a client that a trigger has fired?
Next
From: Jorge Godoy
Date:
Subject: Re: Can PostgreSQL notify a client that a trigger has fired?