Re: Vacuuming unicode database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Vacuuming unicode database
Date: 2003-08-13 16:50:03
Message-ID: 6495.1060793403@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee> writes:
> Table pg_group is giving errors, because I have group name with 8-bit
> characters in it. As I understand, groups are common for all databases
> and pg_group is created during initdb, so it should be considered having
> SQL_ASCII charset, not UNICODE. Seems like a bug to me?

Unfortunately, we don't have any way of dealing with different character
sets or locales in different tables. (AFAICT this is not practical
without implementing our own locale library, which would be an enormous
task; someday we will solve this problem, but don't hold your breath.)
So pg_shadow, pg_group, and pg_database are all risk spots.

I think the best advice is to limit your user/group/database names to
7-bit-ASCII if you are going to use different encodings in different
databases. That way, they'll look valid in all databases.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-08-13 16:51:58 Re: Sorting Problem
Previous Message Stephan Szabo 2003-08-13 16:31:31 Re: Sorting Problem