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 11072.1556470926@sss.pgh.pa.us
Whole thread Raw
In response to Re: Restrictions of channel arg of pg_notofy  (Axel Rau <Axel.Rau@chaos1.de>)
List pgsql-sql
Axel Rau <Axel.Rau@chaos1.de> writes:
> I have investigated further:
> pg_notify does not work at all, even with a constant string channel arg.
> NOTIFY works.
> This is release 11.2.

[ shrug... ]  Works for me.

> What am I doing wrong?

Hard to tell when you haven't provided a complete example.

Just looking at the code you did show, though, I notice that
you have

    PERFORM pg_notify(fac);

but there's no single-argument form of pg_notify in standard PG:

regression=# \df pg_notify
                           List of functions
   Schema   |   Name    | Result data type | Argument data types | Type 
------------+-----------+------------------+---------------------+------
 pg_catalog | pg_notify | void             | text, text          | func
(1 row)

Maybe whatever shim you've got for that doesn't work right?

            regards, tom lane



pgsql-sql by date:

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