Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVieD-0003yT-DM for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2016 16:38:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVieC-00035M-Pw for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2016 16:38:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVieC-00035A-6B for pgsql-bugs@postgresql.org; Tue, 16 Feb 2016 16:38:44 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aVie3-0004ED-Ny; Tue, 16 Feb 2016 16:38:42 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1aVie1-0003Gj-Rs; Tue, 16 Feb 2016 11:38:33 -0500 Date: Tue, 16 Feb 2016 11:38:33 -0500 From: Bruce Momjian To: Jan Lentfer Cc: Tatsuo Ishii , pgsql-bugs@postgresql.org Subject: Re: Encoding problems with "COMMENT ON DATABASE .." causing pg_restore (and pg_upgrade) to fail Message-ID: <20160216163833.GF31273@momjian.us> References: <666abab3fe03561c77dbfc661b023985@neslonek.homeunix.org> <20160127.094510.1792875178673024937.t-ishii@sraoss.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 Wed, Jan 27, 2016 at 08:44:27AM +0100, Jan Lentfer wrote: > Am 2016-01-27 01:45, schrieb Tatsuo Ishii: > >I am not familiar with pgadmin3 but it seems a bug with pgadmin3 or > >misuse of it to me. Probably when this: > > > >>---> use pgadmin3 on Windows to set comment on database > >>coment_test with > >>---> string "für", while being connected to postgres (SQL_ASCII > >>encoded) > > > >was executed, the client encoding is not properly set to UTF-8 for > >some reasons. > > I think you are actually right. It seems this only happens if you > initially connect to a SQL_ASCII databse with pgadmin3 and then set > a comment containing special characters on a UTF-8 database. I could > now also reproduce this behaviour on a Linux host with Postgre > 9.4.5. > And I can also confirm that this does not happen using psql. > > I will forward this issue to the pgadmin mailing list. 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. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs