pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: John R Pierce <pierce@hogranch.com>
To: 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 14:12:41 -0600
Message-ID: <56C382B9.2050307@BlueTreble.com> (raw)
In-Reply-To: <56C38220.9060900@hogranch.com>
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>
	<56C38220.9060900@hogranch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2/16/16 2:10 PM, John R Pierce 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.
>
> what encoding SHOULD the global catalogs be in when the databases are in
> different encodings?   I'm not sure there's any answer better than utf8 ?

You could probably make an argument for SQL_ASCII.

The part about all of this that concerns me is what happens when people 
query global catalogs directly... I'm not sure if we have the ability to 
force specific conversions when that happens.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <56C382B9.2050307@BlueTreble.com>
Permalink:  ../56C382B9.2050307@BlueTreble.com/
Also on:    postgresql.org/message-id/56C382B9.2050307@BlueTreble.com

 · 

reply

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: Jim.Nasby@BlueTreble.com, pierce@hogranch.com
  Subject: Re: Encoding problems with "COMMENT ON DATABASE .." causing pg_restore (and pg_upgrade) to fail
  In-Reply-To: <56C382B9.2050307@BlueTreble.com>
  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> <56C38220.9060900@hogranch.com> <56C382B9.2050307@BlueTreble.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