Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1DA3A64FD40 for ; Fri, 29 Aug 2008 02:53:33 -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 71349-06 for ; Fri, 29 Aug 2008 02:53:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by postgresql.org (Postfix) with ESMTP id EF4A964FCDE for ; Fri, 29 Aug 2008 02:53:29 -0300 (ADT) Received: by ey-out-2122.google.com with SMTP id 6so203007eyi.61 for ; Thu, 28 Aug 2008 22:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HqJ0AKipboG6EYrL+vqAy25vzk7eO8PWvVNxMll13Z8=; b=sGOUEt2FsZLGJuUU5x5tQ0ERRfU3Wiy7ssXgiwHhimiLLpNrE3K17Y67bfl6J2lNaE jaBSGgTaYOwqV09PO88IeMIk+Gq4fUrWb7cQuX4naCNHixPGqLLRCypLftet35GPA2Xh NM7yWLP6tumGITTxJ/n3Bu1L2lVX4BTLyZjko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Tqn6KJSJNBiLM1C+V4mjCDmaBwfzWN4WpsPF/r3NhqvG2W5upVI2XGX2Yo7x4Ksyb+ oK88h9u0GgmTnEwEkDRkN0v/p7fOSam28nCP2JPo3JhquBU92t0046uNDm8w6JMshqAV lZSpTMrDfP3gQAOyMrmbbLqjqAnpJwCYc+ZrU= Received: by 10.210.80.17 with SMTP id d17mr1062951ebb.58.1219989208560; Thu, 28 Aug 2008 22:53:28 -0700 (PDT) Received: by 10.210.130.1 with HTTP; Thu, 28 Aug 2008 22:53:28 -0700 (PDT) Message-ID: Date: Fri, 29 Aug 2008 13:53:28 +0800 From: "Phoenix Kiula" To: "Andrew Sullivan" , pgsql-general@postgresql.org Subject: Re: Dumping/Restoring with constraints? In-Reply-To: <20080828174712.GB27283@commandprompt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B5BC2A.5070104@wildenhain.de> <20080828174712.GB27283@commandprompt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/1102 X-Sequence-Number: 136932 On 8/29/08, Andrew Sullivan wrote: > > The latter should be in effect if your database encoding is UTF-8. > What's the database encoding? My database encoding on BOTH the sides is UTF8. The dumped DB is UTF8. The one I am importing into is also UTF8. So why is it showing me this error? Do I also have to look at stuff like "collation"? Also, how can I ensure that my dumped database on the server has only UTF8 data? What constraint or function can I use? Thanks