Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 36E9C1337B2F for ; Thu, 7 Apr 2011 06:43:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 90860-01 for ; Thu, 7 Apr 2011 09:43:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs73.luxsci.com (rs73.luxsci.com [64.49.254.135]) by mail.postgresql.org (Postfix) with ESMTP id 318021337BD1 for ; Thu, 7 Apr 2011 06:43:29 -0300 (ADT) Received: from GNANAM (NSG-Static-233.156.72.182.airtel.in [182.72.156.233] (may be forged)) (authenticated bits=0) by rs73.luxsci.com (8.13.8/8.13.8) with ESMTP id p379hPof021913; Thu, 7 Apr 2011 04:43:27 -0500 Reply-To: From: "Gnanakumar" To: "'Kevin Grittner'" , Cc: References: <201104011542.p31Fg6L3025075@rs73.luxsci.com> <006201cbf2d1$1ea55730$5bf00590$@com> <4D99A788020000250003C21A@gw.wicourts.gov> <002501cbf35d$54246310$fc6d2930$@com> <4D9AE575020000250003C2F4@gw.wicourts.gov> In-Reply-To: <4D9AE575020000250003C2F4@gw.wicourts.gov> Subject: Re: DB Import Error... Date: Thu, 7 Apr 2011 15:09:19 +0530 Organization: Zoniac Software Private Limited Message-ID: <002b01cbf507$ae806f60$0b814e20$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvzoJ+1IBzpjQYUR/mntcRu5XBQsgBY+1/Q Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.61 tagged_above=-10 required=5 tests=BAYES_00=-1.9, MAY_BE_FORGED=0.29 X-Spam-Level: X-Archive-Number: 201104/55 X-Sequence-Number: 37236 > You can install two different versions of PostgreSQL in different > directories, or you can run pg_dump from the machine which is your > conversion target. We do both. We always build from source, and we > use a --prefix on configure which includes the version. For > example: I even tried out the recommended upgrade technique also. That is, installed new version (9.0.3 in this case) of PostgreSQL in a different directory in the same machine and used pg_dump of this latest version to access the old database (running 8.2.3 in this case) to take a dump and then imported into 9.0.3. Still I'm facing *exactly* the same set of errors after importing (as I was getting before). ERROR: constraint "xxxx" for relation "xxxx" already exist There are 260 occurrences of this type of error. How do I resolve/fix this problem at this stage? Since this issue we're facing is with our Production database dump, timely suggestions/advice/help to resolve this are highly appreciated.