pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua McDougall <josh@schemaverse.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5911: pg_notify() function only works when channel name is lower case
Date: Thu, 3 Mar 2011 15:20:59 GMT
Message-ID: <201103031520.p23FKxFJ049037@wwwmaster.postgresql.org> (raw)


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!');



view thread (4+ messages)  latest in thread

Message-ID: <201103031520.p23FKxFJ049037@wwwmaster.postgresql.org>
Permalink:  ../201103031520.p23FKxFJ049037@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201103031520.p23FKxFJ049037@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: josh@schemaverse.com
  Subject: Re: BUG #5911: pg_notify() function only works when channel name is lower case
  In-Reply-To: <201103031520.p23FKxFJ049037@wwwmaster.postgresql.org>
  References: <201103031520.p23FKxFJ049037@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox