From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Jim Nasby <Jim.Nasby@BlueTreble.com>
Cc: Jan Lentfer <jan.lentfer@web.de>
Cc: Tatsuo Ishii <ishii@postgresql.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Encoding problems with "COMMENT ON DATABASE .." causing pg_restore (and pg_upgrade) to fail
Date: Tue, 16 Feb 2016 15:24:24 -0500
Message-ID: <12470.1455654264@sss.pgh.pa.us> (raw)
In-Reply-To: <20160216200614.GI31273@momjian.us>
References: <666abab3fe03561c77dbfc661b023985@neslonek.homeunix.org>
<20160127.094510.1792875178673024937.t-ishii@sraoss.co.jp>
<a449263f8e2ac8dc5c4454fac2b24b05@neslonek.homeunix.org>
<20160216163833.GF31273@momjian.us>
<56C37A38.6060007@BlueTreble.com>
<20160216200614.GI31273@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Feb 16, 2016 at 01:36:24PM -0600, Jim Nasby wrote:
>> Could we force the global catalogs to always be accessed via UTF8,
>> at least for modification? I suspect that would mean changing
>> encodings on the fly in the appropriate command functions (such as
>> what's listed in src/include/commands/user.h).
> I don't remember us favoring UTF8 in this way in the past.
Yeah. I'm pretty sure the Far Eastern contingent has specifically lobbied
against giving UTF8 such a preference. Also, if a name in the shared
catalog is UTF8, what do you do when it cannot be converted to the local
database encoding? I don't think pretending the entry isn't there will do.
Perhaps a reasonable thing for now is to document that it's a bad idea
to put non-ASCII characters in names or comments of shared objects
(databases, roles, tablespaces) unless all databases of the cluster share
the same encoding. I don't know if it would be useful/practical to try
to mechanically enforce such a rule, but we could at least warn people
about the issue.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, bruce@momjian.us, Jim.Nasby@BlueTreble.com, jan.lentfer@web.de, ishii@postgresql.org
Subject: Re: Encoding problems with "COMMENT ON DATABASE .." causing pg_restore (and pg_upgrade) to fail
In-Reply-To: <12470.1455654264@sss.pgh.pa.us>
References: <666abab3fe03561c77dbfc661b023985@neslonek.homeunix.org> <20160127.094510.1792875178673024937.t-ishii@sraoss.co.jp> <a449263f8e2ac8dc5c4454fac2b24b05@neslonek.homeunix.org> <20160216163833.GF31273@momjian.us> <56C37A38.6060007@BlueTreble.com> <20160216200614.GI31273@momjian.us> <12470.1455654264@sss.pgh.pa.us>
* 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