Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aaB0p-0005vf-4x for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2016 23:44:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aaB0o-0004I2-Nq for pgsql-bugs@arkaria.postgresql.org; Sun, 28 Feb 2016 23:44:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aaB0B-0003ZP-Ea for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 23:43:51 +0000 Received: from 104-190-1-44.lightspeed.sndgca.sbcglobal.net ([104.190.1.44] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aaB08-0006Zn-KT for pgsql-bugs@postgresql.org; Sun, 28 Feb 2016 23:43:50 +0000 Received: from [72.214.29.243] (account jconway@joeconway.com HELO [192.168.4.41]) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 16193305; Sun, 28 Feb 2016 15:43:47 -0800 Subject: Re: BUG #13994: Documentation of pg_notify is incorrect. To: junkmesend@gmail.com, pgsql-bugs@postgresql.org References: <20160228232040.10551.18290@wrigleys.postgresql.org> From: Joe Conway Message-ID: <56D38632.6090405@joeconway.com> Date: Sun, 28 Feb 2016 15:43:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160228232040.10551.18290@wrigleys.postgresql.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DbHswr5tnqVmGjjkwC8AP9tVIGE9F2wgi" X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DbHswr5tnqVmGjjkwC8AP9tVIGE9F2wgi From: Joe Conway To: junkmesend@gmail.com, pgsql-bugs@postgresql.org Message-ID: <56D38632.6090405@joeconway.com> Subject: Re: [BUGS] BUG #13994: Documentation of pg_notify is incorrect. References: <20160228232040.10551.18290@wrigleys.postgresql.org> In-Reply-To: <20160228232040.10551.18290@wrigleys.postgresql.org> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 02/28/2016 03:20 PM, junkmesend@gmail.com wrote: > http://www.postgresql.org/docs/9.5/static/sql-notify.html >=20 > Recommends the command... >=20 > SELECT pg_notify('fo' || 'o', 'pay' || 'load'); Which works fine: postgres=3D# SELECT pg_notify('fo' || 'o', 'pay' || 'load'); pg_notify ----------- (1 row) > PERFORM pg_notify('fo' || 'o', 'pay' || 'load'); >=20 > does work, as explained here. >=20 > http://stackoverflow.com/questions/5412474/using-pg-notify-in-postgresql-= trigger-function?lq=3D1 You are confusing SQL statement syntax with PL/pgSQL function syntax. See: http://www.postgresql.org/docs/9.5/static/plpgsql-statements.html#PLPGSQL-S= TATEMENTS-SQL-NORESULT Joe --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --DbHswr5tnqVmGjjkwC8AP9tVIGE9F2wgi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJW04YzAAoJEDfy90M199hl8hMP/1+1pTQlGXOO2UJjTpplyBxy VNLbN8bU913k1sS5EAgclVzDY1WzCWRZv63GQQ3imLZzI3QFGSTmD05Gp+h4srqR XqWJaXGcoD134K+eAsWZ5uF/HTXBid4Nkxi8SHqLq7sfxoWzKSbGFsummgGvrj46 rdHOhHRT/100CwCWk38EiUlvfCGHjH7MdPoCRHIUTaLv0Rn5T+rt9bvlceTz1aeq pG1LkHPXPqWwQiLSxxhXsRQEfwBoYS9HN3Jc/UntumrkJoiUqQJl7y8X3pnvqZBQ TNBsxQniP58BGtJxEw+HZBq1JoMNQ7hQWDdZ9w99Yr+/fHPWHb4wKs3tzfOyKvZk 6z9EHFasqkeRTdUnxL2YLKiN7twBVDwj1MtdzoFZ1HpqMj4s9ncOvK8zo669GQ1u gDIXziU72M+P/7LhOHQPYxxygTYlMpSSGWuQUkNAoIZiE9pmXuH5+FrvsQJGpWkJ lACJRuCjE+zciGgcyT6bwmi35TG9VuowX04X7Uz4OWQh9ZLMmb96wN8AhWq/NECD ++vtp+IcCf4D8Uz4dxS9nWQWLAb32dlpQ4F/Au0vPfNilRqkLuVnm/8nOSyMRRht eyZNYBapv1J42j666OhrG1JBTLcP+XDyk7vkmGpXVHNaXsuQ+HDZ7sfwGAwRRqf+ dNKOO0HnIBJMy+qX//sG =BLKS -----END PGP SIGNATURE----- --DbHswr5tnqVmGjjkwC8AP9tVIGE9F2wgi--