pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Moshe Ben-Shoham <mosheb@nexperience.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Encoding problem using pg_dumpall
Date: Thu, 29 Jan 2009 18:45:25 +0100
Message-ID: <4981EB35.5060106@hagander.net> (raw)
In-Reply-To: <7403.1233250794@sss.pgh.pa.us>
References: <75E4C42D37E6A74E9FB57C2E9F1300D60107073E@tiger.nexperience.com>
	<28817.1233242176@sss.pgh.pa.us>
	<4981E805.7040302@hagander.net>
	<7403.1233250794@sss.pgh.pa.us>

Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> Tom Lane wrote:
>>> (Hmm, actually it looks like pg_dumpall hasn't got a -E switch,
>>> which seems like an oversight.  So you need to fix your locale,
>>> or else use pg_dump directly.)
> 
>> IIRC, you can't set the windows console to be UTF8.
> 
> Ugh.  That seems to raise the priority of having a -E switch quite
> a lot.  I'm surprised no one has complained of this before.

Most people use pg_dump. I know I recommend everbody to use pg_dump to
dump the database, because you can use -Fc. Then just use pg_dumpall to
dump the globals, and they normally don't have any non-ascii in them.


> I think it should be possible to work around it by setting
> PGCLIENTENCODING in the environment, but I dunno how to do that
> on Windows.

That's a simple
set PGCLIENTENCODING=UTF8

//Magnus




view thread (10+ messages)  latest in thread

Message-ID: <4981EB35.5060106@hagander.net>
Permalink:  ../4981EB35.5060106@hagander.net/
Also on:    postgresql.org/message-id/4981EB35.5060106@hagander.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: magnus@hagander.net, tgl@sss.pgh.pa.us, mosheb@nexperience.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Encoding problem using pg_dumpall
  In-Reply-To: <4981EB35.5060106@hagander.net>

* 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