Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VB5BV-0007W9-P9 for pgsql-bugs@arkaria.postgresql.org; Sun, 18 Aug 2013 15:46:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VB4Kl-0001Dr-6w for pgsql-bugs@arkaria.postgresql.org; Sun, 18 Aug 2013 14:51:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VB4Kk-0001Dl-H9 for pgsql-bugs@postgresql.org; Sun, 18 Aug 2013 14:51:58 +0000 Received: from nm38-vm5.bullet.mail.bf1.yahoo.com ([72.30.239.21]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VB4Kb-0007F4-Lj for pgsql-bugs@postgresql.org; Sun, 18 Aug 2013 14:51:57 +0000 Received: from [98.139.212.149] by nm38.bullet.mail.bf1.yahoo.com with NNFMP; 18 Aug 2013 14:51:47 -0000 Received: from [98.139.212.238] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 18 Aug 2013 14:51:47 -0000 Received: from [127.0.0.1] by omp1047.mail.bf1.yahoo.com with NNFMP; 18 Aug 2013 14:51:47 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 16476.14812.bm@omp1047.mail.bf1.yahoo.com Received: (qmail 76372 invoked by uid 60001); 18 Aug 2013 14:51:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1376837506; bh=ZA8GKTgfx5hT6Ia5utUz3VZYVPoCuibJDL3UThj0tSc=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5pS/1KHOrvFJaneq3RCUo3oUVM9Sh0mqIE918TnQnYS+xgBYWCTvBgvexMEKibAL/1RgXNjx/8ZhAGvlaPlykbk/WST8TE3ydCgbdQuuQ0Y8JVJuAn9BFhZpDMa/qlnYZ4/bvqfIZIQseL1DQ7fy2H929CBHGT7CyfGepN79ipU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mSNacVidgkT5j5NZBpXLhdBW3SvPPF0ls6QI4cJs1PYZMUnvbDRX3LddU7CEIQsL9fNWM1CcV/GjIXBh59Si/s+5laRjFmxWLp41UHuxniBoJyZ7FY6aefOp7f0QyIzNVKVlpcdEVNZngJ2NodpGtC6P2zhYcNfdxvm+sT3OjxQ=; X-YMail-OSG: sxPzgGIVM1keT5toabwnxIssrGZjTsw3xLmwJtsBRNcnYLK HvVNGV4wcsN04k371sqBJMn7F4bfvyiyeJL8UNqAsJ6xZZE77ClJBhDuaND. 9JwehMnajVbbSRmIXkXMTa0KNkQM.4F8iFxOAphkZvffnHUtM6Ayo8rOBtqR RSOanEJJ.C69EgqMm472ozJYypO5UThb9TOklAHPpJ8tUwQt4uBGyxIPGuPA DmTqOOTAFlfJf97SN27CShbcQGpwrLzpdlLB4wKLKd2qLN9iZUZvnhiqx5zn TZj5XNFt5mvYFk9WtxN8UEJSbJHPpk4jiqnse2BlIsOrqoCJ3RsrrlSh5W4P z0MdOyptfNHKDMiDyyQCfUfffwSfrtxe7FBpmt7WKnKWxPdgSW1SSVqb5K2A zZ9.TN4pDXZFQZO_NP.mqCUeXIxwDTGjcnyf1CY6Kwg.geXclugSbLn54ZlQ kPV1Tq9FFhXBPGYHzrXAYyUItaAghljXngFo80waeXDqY6q7euNVJTh63UBH yibRsHe5adHP3l2PkijaHlyp9NMac4oxDlo10orGMmdbwy5F58YAAMM2vU9U Ehax6D9B5WpFALAmhlYh_6pnyJqR54vo2Nck9Qh4uXgHPhhCvzrb1czUdvLm wscun Received: from [76.255.18.237] by web162906.mail.bf1.yahoo.com via HTTP; Sun, 18 Aug 2013 07:51:46 PDT X-Rocket-MIMEInfo: 002.001, ImtvbG15a0Bob3RtYWlsLmNvbSIgPGtvbG15a0Bob3RtYWlsLmNvbT4gd3JvdGU6Cgo.IE9wZXJhdGluZyBzeXN0ZW06wqAgV2luZG93cyA4Cgo.IGNyZWF0ZSBvciByZXBsYWNlIGZ1bmN0aW9uIM6xKM6yIGludCwgzr4gaW50LCDOvCBmbG9hdCkgcmV0dXJucyBmbG9hdCBhcyAkJAo.IHNlbGVjdCAozrIgKyDOvikgKiDOvCAkJCBsYW5ndWFnZSBzcWw7Cj4gc2VsZWN0IM6xKDEsIDIsIDAuMSk7Cj4gLS0gaXQgd29ya3MKPiBzZWxlY3QgYXNjaWkocHJvbmFtZSksICogZnJvbSBwZ19wcm9jIHdoZXJlIGxlbmcBMAEBAQE- X-Mailer: YahooMailWebService/0.8.154.571 References: Message-ID: <1376837506.52736.YahooMailNeo@web162906.mail.bf1.yahoo.com> Date: Sun, 18 Aug 2013 07:51:46 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: BUG #8385: greek symbols as function name To: "kolmyk@hotmail.com" , "pgsql-bugs@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.0 (-) 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 "kolmyk@hotmail.com" wrote: > Operating system:=C2=A0 Windows 8 > create or replace function =CE=B1(=CE=B2 int, =CE=BE int, =CE=BC float) r= eturns float as $$ > select (=CE=B2 + =CE=BE) * =CE=BC $$ language sql; > select =CE=B1(1, 2, 0.1); > -- it works > select ascii(proname), * from pg_proc where length(proname) =3D 1; > -- return code 60536 although select ascii('=CE=B1') retruns 945 > select * from pg_proc where proname =3D '=CE=B1'; > -- returns nothing Here's what I get on Ubuntu 12.10.=C2=A0 The bug is likely to be Windows-specific.=C2=A0 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. test=3D# create or replace function =CE=B1(=CE=B2 int, =CE=BE int, =CE=BC f= loat) returns float as $$ select (=CE=B2 + =CE=BE) * =CE=BC $$ language sql; CREATE FUNCTION test=3D# \df+ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 List of functions =C2=A0Schema | Name | Result data type |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Argument data types=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= |=C2=A0 Type=C2=A0 | Security | Volatility |=C2=A0 Owner=C2=A0 | Language = |=C2=A0=C2=A0=C2=A0=C2=A0 Source code=C2=A0=C2=A0=C2=A0=C2=A0 | Description --------+------+------------------+----------------------------------------= --------+--------+----------+------------+---------+----------+------------= ---------+------------- =C2=A0public | =CE=B1=C2=A0=C2=A0=C2=A0 | double precision | "=CE=B2" integ= er, "=CE=BE" integer, "=CE=BC" double precision | normal | invoker=C2=A0 | = volatile=C2=A0=C2=A0 | kgrittn | sql=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 +| =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | sele= ct (=CE=B2 + =CE=BE) * =CE=BC=C2=A0 | (1 row) test=3D# select =CE=B1(1, 2, 0.1); =C2=A0 =CE=B1 =C2=A0 ----- =C2=A00.3 (1 row) test=3D# select ascii(proname), proname from pg_proc where length(proname) = =3D 1; =C2=A0ascii | proname -------+--------- =C2=A0=C2=A0 945 | =CE=B1 (1 row) test=3D# select ascii('=CE=B1'); =C2=A0ascii ------- =C2=A0=C2=A0 945 (1 row) test=3D# select proname from pg_proc where proname =3D '=CE=B1'; =C2=A0proname --------- =C2=A0=CE=B1 (1 row) -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs