Re: Move databases from Pg 7.2.1 to 8.3.x

From: John R Pierce <pierce(at)hogranch(dot)com>
To: "Roderick A(dot) Anderson" <raanders(at)cyber-office(dot)net>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Move databases from Pg 7.2.1 to 8.3.x
Date: 2009-04-14 17:45:36
Message-ID: 49E4CBC0.7050506@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roderick A. Anderson wrote:
> I can't avoid it any longer and have to move an old RT2 installation
> to a new machine. (I'll upgrade to RT3 on that machine.)
>
> The plan calls for a pg_dump using my workstation using CREATE the
> database and INSERTS (-C -D) . Then use psql to run the script
> created above to build the database on the new system.
>
> I have the time to fiddle about but would appreciate any suggestions
> to make it run smooth(er).

make sure pg_hba.conf on the old machine allows you to connect from the
new machine's IP address as the user postgres (this may require setting
a database password for the postgres user on the old machine if the
'host' authentication method so specifies), then from the new machine,
after doing an initdb and starting the new version of postgres, and
while logged on as the unix postgres user...

pg_dumpall -h oldmachine -U postgres | psql

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 2009-04-14 18:11:53 Re: Move databases from Pg 7.2.1 to 8.3.x
Previous Message Tom Lane 2009-04-14 17:41:59 Re: Move databases from Pg 7.2.1 to 8.3.x