Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E10231337BB0 for ; Thu, 3 Mar 2011 11:21:00 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39896-04 for ; Thu, 3 Mar 2011 15:21:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 41D061337B69 for ; Thu, 3 Mar 2011 11:21:00 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p23FKxi3049038 for ; Thu, 3 Mar 2011 15:20:59 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p23FKxFJ049037; Thu, 3 Mar 2011 15:20:59 GMT (envelope-from www) Date: Thu, 3 Mar 2011 15:20:59 GMT Message-Id: <201103031520.p23FKxFJ049037@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5911: pg_notify() function only works when channel name is lower case From: "Joshua McDougall" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201103/42 X-Sequence-Number: 29552 The following bug has been logged online: Bug reference: 5911 Logged by: Joshua McDougall Email address: josh@schemaverse.com PostgreSQL version: 9.0.3 Operating system: Slackware Linux Kernel 2.6.28.6 Description: pg_notify() function only works when channel name is lower case Details: When using the pg_notify(text,text) function, the channel name MUST be lower case otherwise the message does not go through. So, while this will work: LISTEN ERRORCHANNEL; NOTIFY ERRORCHANNEL, 'something!'; NOTIFY eRrorChanNel, 'something!'; this will not: SELECT pg_notify('ERRORCHANNEL','something!'); You must use: SELECT pg_notify('errorchannel','something!');