Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVlx1-0001sV-NG for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2016 20:10:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVlx0-0001vT-4q for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2016 20:10:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVlwz-0001vN-Rq for pgsql-bugs@postgresql.org; Tue, 16 Feb 2016 20:10:21 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aVlww-00067i-Pp for pgsql-bugs@postgresql.org; Tue, 16 Feb 2016 20:10:21 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u1GKAA718000 for ; Tue, 16 Feb 2016 12:10:10 -0800 Subject: Re: Encoding problems with "COMMENT ON DATABASE .." causing pg_restore (and pg_upgrade) to fail To: pgsql-bugs@postgresql.org References: <666abab3fe03561c77dbfc661b023985@neslonek.homeunix.org> <20160127.094510.1792875178673024937.t-ishii@sraoss.co.jp> <20160216163833.GF31273@momjian.us> <56C37A38.6060007@BlueTreble.com> <20160216200614.GI31273@momjian.us> From: John R Pierce Message-ID: <56C38220.9060900@hogranch.com> Date: Tue, 16 Feb 2016 12:10:08 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160216200614.GI31273@momjian.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) 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 On 2/16/2016 12:06 PM, Bruce Momjian wrote: > On Tue, Feb 16, 2016 at 01:36:24PM -0600, Jim Nasby wrote: >> >On 2/16/16 10:38 AM, Bruce Momjian wrote: >>> > >I see no one else commented on this. We have trouble keeping the global >>> > >system catalogs consistent when databases in the same cluster use >>> > >different encodings. I am not sure how we could improve this. >> > >> >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 ? -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs