Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKnBy-0005QM-Dr for pgsql-sql@arkaria.postgresql.org; Sun, 28 Apr 2019 17:02:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hKnBx-0005Bq-6W for pgsql-sql@arkaria.postgresql.org; Sun, 28 Apr 2019 17:02:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKnBw-0005Ac-Ux for pgsql-sql@lists.postgresql.org; Sun, 28 Apr 2019 17:02:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hKnBu-0005MF-1O for pgsql-sql@lists.postgresql.org; Sun, 28 Apr 2019 17:02:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3SH269l011073; Sun, 28 Apr 2019 13:02:06 -0400 From: Tom Lane To: Axel Rau cc: pgsql-sql@lists.postgresql.org Subject: Re: Restrictions of channel arg of pg_notofy In-reply-to: References: <023C223F-4FC9-4E9E-A8C6-17F491358FA7@Chaos1.DE> <28634.1556391117@sss.pgh.pa.us> Comments: In-reply-to Axel Rau message dated "Sun, 28 Apr 2019 18:22:12 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11071.1556470926.1@sss.pgh.pa.us> Date: Sun, 28 Apr 2019 13:02:06 -0400 Message-ID: <11072.1556470926@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Axel Rau 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