From: ddebernardy@yahoo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8266: Problem with \d and ::regclass when tables have utf8 chars in their name
Date: Thu, 27 Jun 2013 22:11:09 +0000
Message-ID: <E1UsKPF-0007da-Ff@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8266
Logged by: Denis de Bernardy
Email address: ddebernardy@yahoo.com
PostgreSQL version: 9.2.4
Operating system: OSX Lion
Description:
As identified in this StackOverflow thread:
http://stackoverflow.com/questions/17353469/postgresql-and-unicode-table-names-why-can-i-not-select-...
---
# create table pinkƒpink1 (id serial);
NOTICE: CREATE TABLE will create implicit sequence "pink?pink1_id_seq" for
serial column "pink?pink1.id"
CREATE TABLE
# select 'pinkƒpink1'::name;
name
------------
pinkƒpink1
(1 row)
# select 'pinkƒpink1'::regclass;
regclass
-------------
"pinkpink1"
(1 row)
# select relname from pg_class where oid = 'pinkƒpink1'::regclass;
relname
-----------
pinkpink1
# select relname from pg_class where relname = 'pinkƒpink1'::name;
relname
---------
(0 rows)
# select relname from pg_class where relname = 'pinkpink1';
relname
---------
(0 rows)
---
It doesn't seem to affect Debian.
--
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: ddebernardy@yahoo.com
Subject: Re: BUG #8266: Problem with \d and ::regclass when tables have utf8 chars in their name
In-Reply-To: <E1UsKPF-0007da-Ff@wrigleys.postgresql.org>
References: <E1UsKPF-0007da-Ff@wrigleys.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