Re: Notiffy problem

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <adasko(dot)86(at)gmail(dot)com>,<pgsql-general(at)postgresql(dot)org>
Subject: Re: Notiffy problem
Date: 2012-07-03 12:44:24
Message-ID: 4FF2A2D80200002500048D1D@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

adasko98 wrote:

> Hi thanks for help. Now i know why pg_notify() does not works for
> me. I'm named listener in c# code 'Demo' and this is a problem. In
> name can't be a capital letter because postges change this name to
> small letter i think. So if someone want use pg_notify use only
> small letter like this "pg_notify('demo', variable);" and it will
> be works

The channel for a LISTEN or NOTIFY command is an identifier, so it
follows the normal rules for identifiers, including folding to lower
case if not enclosed in quotes. The pg_notify() function wraps the
given channel name in quotes if needed. Most people find it easiest
to keep all identifiers lower case to avoid such issues.

-Kevin

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2012-07-03 13:01:07 Re: errors with high connections rate
Previous Message Rob Richardson 2012-07-03 12:30:13 Re: Where should I start for learn development