Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8865F1337BF5 for ; Tue, 5 Apr 2011 11:48:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 03997-04-3 for ; Tue, 5 Apr 2011 14:48:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id DAE8B1337C0A for ; Tue, 5 Apr 2011 11:48:47 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 05 Apr 2011 09:48:48 -0500 Message-Id: <4D9AE575020000250003C2F4@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 05 Apr 2011 09:48:37 -0500 From: "Kevin Grittner" To: , Cc: Subject: Re: DB Import Error... References: <201104011542.p31Fg6L3025075@rs73.luxsci.com> <006201cbf2d1$1ea55730$5bf00590$@com> <4D99A788020000250003C21A@gw.wicourts.gov> <002501cbf35d$54246310$fc6d2930$@com> In-Reply-To: <002501cbf35d$54246310$fc6d2930$@com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/43 X-Sequence-Number: 37224 "Gnanakumar" wrote: >> If you're upgrading to 9.0, I would start by following the >> recommended upgrade procedure and seeing whether these problems >> then exist in the new database. Fixing old issues like this is >> one big reason for using the newer version of pg_dump. > > How do I use the newer version of pg_dump (9.0.3 in this case) to > take SQL dump, when v8.2.3 is already installed in my server? 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: --prefix=/usr/local/pgsql-9.0.3 To simplify usage we also create a symbolic link from /usr/local/pgsql to the version we want as the default on the machine, and we set our PATH to include /usr/local/pgsql/bin. We never use the symbolic link in our service scripts, though. Anyway, if you build with a different prefix you can pick your version by explicitly specifying the full path when you run a client program like pg_dump. > Any procedure/steps/advice/suggestion to take dump using latest > version of pg_dump without disturbing old database cluster is > appreciated. When we're moving from an old version on one machine to a newer version on another machine, we don't need to install the new version of PostgreSQL on the old machine. On the new machine run: pg_dump -h oldmachine -U username remotedbname | psql localdbname -Kevin