Re: Restrictions of channel arg of pg_notofy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Axel Rau <Axel(dot)Rau(at)Chaos1(dot)DE>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Restrictions of channel arg of pg_notofy
Date: 2019-04-27 18:51:57
Message-ID: 28634.1556391117@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Axel Rau <Axel(dot)Rau(at)Chaos1(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Axel Rau 2019-04-28 16:22:12 Re: Restrictions of channel arg of pg_notofy
Previous Message Axel Rau 2019-04-27 17:51:46 Restrictions of channel arg of pg_notofy