Re: Restrictions of channel arg of pg_notofy - Mailing list pgsql-sql

From Tom Lane
Subject Re: Restrictions of channel arg of pg_notofy
Date
Msg-id 28634.1556391117@sss.pgh.pa.us
Whole thread Raw
In response to Restrictions of channel arg of pg_notofy  (Axel Rau <Axel.Rau@Chaos1.DE>)
Responses Re: Restrictions of channel arg of pg_notofy  (Axel Rau <Axel.Rau@chaos1.de>)
List pgsql-sql
Axel Rau <Axel.Rau@Chaos1.DE> writes:
> Can the channel argument derived from the NEW pseudo arg of an INSERT TRIGGER?
> In the following trigger function, the
>     PERFORM pg_notify(fac);
> does not work (LISTEN in psql shows no notification).

That should work.

I think more likely what you're running into is that the NOTIFY won't
be delivered until end of transaction?

            regards, tom lane



pgsql-sql by date:

Previous
From: Axel Rau
Date:
Subject: Restrictions of channel arg of pg_notofy
Next
From: Axel Rau
Date:
Subject: Re: Restrictions of channel arg of pg_notofy