agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Axel Rau <Axel.Rau@Chaos1.DE>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: Restrictions of channel arg of pg_notofy
Date: Sat, 27 Apr 2019 14:51:57 -0400
Message-ID: <28634.1556391117@sss.pgh.pa.us> (raw)
In-Reply-To: <023C223F-4FC9-4E9E-A8C6-17F491358FA7@Chaos1.DE>
References: <023C223F-4FC9-4E9E-A8C6-17F491358FA7@Chaos1.DE>
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
view thread (7+ messages) latest in thread
Message-ID: <28634.1556391117@sss.pgh.pa.us>
Permalink: ../28634.1556391117@sss.pgh.pa.us/
Also on: postgresql.org/message-id/28634.1556391117@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, Axel.Rau@Chaos1.DE, pgsql-sql@lists.postgresql.org
Subject: Re: Restrictions of channel arg of pg_notofy
In-Reply-To: <28634.1556391117@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox