Re: Restrictions of channel arg of pg_notofy
Tom Lane <[email protected]> Sun, 28 Apr 2019 13:02:06 -0400
| Newsgroups | gmane.comp.db.postgresql.sql |
|---|---|
| Message-ID | <[email protected]> |
Axel Rau <[email protected]> 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