Re: Move databases from Pg 7.2.1 to 8.3.x - Mailing list pgsql-general

From John R Pierce
Subject Re: Move databases from Pg 7.2.1 to 8.3.x
Date
Msg-id 49E4CBC0.7050506@hogranch.com
Whole thread Raw
In response to Move databases from Pg 7.2.1 to 8.3.x  ("Roderick A. Anderson" <raanders@cyber-office.net>)
Responses Re: Move databases from Pg 7.2.1 to 8.3.x
List 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





pgsql-general by date:

Previous
From: William Temperley
Date:
Subject: Disconnected editing - versioning of databases
Next
From: sandiphw
Date:
Subject: Re: pgSql authentication problem with openLdap