pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: gnanam@zoniac.com
Cc: raghuchennuru@gmail.com
Subject: Re: DB Import Error...
Date: Tue, 05 Apr 2011 09:48:37 -0500
Message-ID: <4D9AE575020000250003C2F4@gw.wicourts.gov> (raw)
In-Reply-To: <002501cbf35d$54246310$fc6d2930$@com>
References: <201104011542.p31Fg6L3025075@rs73.luxsci.com>
	<006201cbf2d1$1ea55730$5bf00590$@com>
	<4D99A788020000250003C21A@gw.wicourts.gov>
	<002501cbf35d$54246310$fc6d2930$@com>

"Gnanakumar" <gnanam@zoniac.com> 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



view thread (13+ messages)  latest in thread

Message-ID: <4D9AE575020000250003C2F4@gw.wicourts.gov>
Permalink:  ../4D9AE575020000250003C2F4@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D9AE575020000250003C2F4@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, gnanam@zoniac.com, raghuchennuru@gmail.com
  Subject: Re: DB Import Error...
  In-Reply-To: <4D9AE575020000250003C2F4@gw.wicourts.gov>
  References: <201104011542.p31Fg6L3025075@rs73.luxsci.com> <006201cbf2d1$1ea55730$5bf00590$@com> <4D99A788020000250003C21A@gw.wicourts.gov> <002501cbf35d$54246310$fc6d2930$@com> <4D9AE575020000250003C2F4@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox