Re: Dumping/Restoring with constraints? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Dumping/Restoring with constraints?
Date
Msg-id 20080829151802.GF29678@commandprompt.com
Whole thread Raw
In response to Re: Dumping/Restoring with constraints?  ("Phoenix Kiula" <phoenix.kiula@gmail.com>)
List pgsql-general
On Fri, Aug 29, 2008 at 11:12:35PM +0800, Phoenix Kiula wrote:
>
> How should I check for the locale?

As the user that you issue the pg_dump with on the machine you
generated it, and as the user you're trying to use to restore the
data, at the command line type

 $ locale

You end up with something like this:

stovepipe:~ ajs$ locale
LANG="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_CTYPE="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_ALL=

I can't remember whether the client encoding is going to be affected
by this during dump and restore, and whether in these versions that is
captured in the dump file.

A

--
Andrew Sullivan
ajs@commandprompt.com
+1 503 667 4564 x104
http://www.commandprompt.com/

pgsql-general by date:

Previous
From: "Phoenix Kiula"
Date:
Subject: Re: Dumping/Restoring with constraints?
Next
From: Raymond O'Donnell
Date:
Subject: Re: MySQL LAST_INSERT_ID() to Postgres