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-28 17:02:06 |
Message-ID: | 11072.1556470926@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:
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Axel Rau | 2019-04-28 17:46:12 | Re: Restrictions of channel arg of pg_notofy |
Previous Message | Axel Rau | 2019-04-28 16:22:12 | Re: Restrictions of channel arg of pg_notofy |