Re: Restrictions of channel arg of pg_notofy

Tom Lane <[email protected]> Sat, 27 Apr 2019 14:51:57 -0400
Newsgroups gmane.comp.db.postgresql.sql
Message-ID <[email protected]>
Axel Rau <[email protected]> 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