Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A250E650377 for ; Fri, 29 Aug 2008 12:23:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22845-04-2 for ; Fri, 29 Aug 2008 12:22:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id CEA2C65039B for ; Fri, 29 Aug 2008 12:18:08 -0300 (ADT) Received: from commandprompt.com (CPE001b63afe888-CM001adea9c5a6.cpe.net.cable.rogers.com [99.236.211.160]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m7TFLBfj000908 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Aug 2008 08:21:14 -0700 Date: Fri, 29 Aug 2008 11:18:02 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: Dumping/Restoring with constraints? Message-ID: <20080829151802.GF29678@commandprompt.com> Mail-Followup-To: Andrew Sullivan , pgsql-general@postgresql.org References: <48B5BC2A.5070104@wildenhain.de> <20080828174712.GB27283@commandprompt.com> <20080829133436.GG29463@commandprompt.com> <20080829144924.GD29678@commandprompt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 29 Aug 2008 08:21:14 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1 tagged_above=0 required=5 tests=FB_WORD1_END_DOLLAR=1 X-Spam-Level: * X-Archive-Number: 200808/1115 X-Sequence-Number: 136945 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/