From: Kevin Grittner <kgrittn@ymail.com>
To: Kevin Grittner <kgrittn@ymail.com>
To: kolmyk@hotmail.com <kolmyk@hotmail.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8385: greek symbols as function name
Date: Sun, 18 Aug 2013 11:19:24 -0700 (PDT)
Message-ID: <1376849964.19363.YahooMailNeo@web162904.mail.bf1.yahoo.com> (raw)
In-Reply-To: <1376837506.52736.YahooMailNeo@web162906.mail.bf1.yahoo.com>
References: <E1VAFvb-00008C-Qg@wrigleys.postgresql.org>
<1376837506.52736.YahooMailNeo@web162906.mail.bf1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Kevin Grittner <kgrittn@ymail.com> wrote:
> Whether it is a bug in Windows or in PostgreSQL character-
> handling under Windows I can say myself, since I haven't
> had any reason to use Windows for years.
Er, that should have been I *can't* say.
>> create or replace function α(β int, ξ int, μ float) returns
float as $$
>> select (β + ξ) * μ $$ language sql;
>> select α(1, 2, 0.1);
>> -- it works
>> select ascii(proname), * from pg_proc where length(proname) = 1;
>> -- return code 60536 although select ascii('α') retruns 945
>> select * from pg_proc where proname = 'α';
>> -- returns nothing
It occurs to me that the behavior you are seeing would be
consistent with 945 being considered an uppercase letter, with
60536 being considered its lowercase form. Normal PostgreSQL
case-folding of identifiers would then cause exactly the symptoms
you are seeing. You could test this theory by quoting its use as
an identifier:
create or replace function "α"(β int, ξ int, μ float) returns float
as $$
select (β + ξ) * μ $$ language sql;
select "α"(1, 2, 0.1);
select ascii(proname), * from pg_proc where length(proname) = 1;
select * from pg_proc where proname = 'α';
If that behaves correctly, you need to sort out what about your
environment is causing the odd case-folding.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: kgrittn@ymail.com, kolmyk@hotmail.com
Subject: Re: BUG #8385: greek symbols as function name
In-Reply-To: <1376849964.19363.YahooMailNeo@web162904.mail.bf1.yahoo.com>
References: <E1VAFvb-00008C-Qg@wrigleys.postgresql.org> <1376837506.52736.YahooMailNeo@web162906.mail.bf1.yahoo.com> <1376849964.19363.YahooMailNeo@web162904.mail.bf1.yahoo.com>
* 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