Re: [GENERAL] Newbie - Pointers on moving.

From: Richard Huxton <dev(at)archonet(dot)com>
To: Envbop <rajib(at)envbopdotgovtdot(dot)nz>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Newbie - Pointers on moving.
Date: 2005-02-28 18:08:59
Message-ID: 42235E3B.60808@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Envbop wrote:
> I have to move a pgsql database which is running on a linux box to a Windows
> 2003 server, so just started to find out about pgsql
> Not sure what version of pgsql is running on the linux box. This a library
> application written in php?.

> Any recommendations on how to do this migration/upgrade ?

Run the new (v8.0) pg_dump on the Windows box and use it to dump the
database on the linux box (with the -h host parameter). The latest
version will probably be smarter than older versions of pg_dump.

Then use pg_restore to restore the data. If your linux database is only
a couple of years old there shouldn't be any problems. If you do have
problems, try restoring the schema then the data - that way it's easier
to identify where the problems are.

Details on the various options for these tools are in the "client
applications" section of the manuals.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-02-28 19:22:00 Re: maximum number of schemas per database?
Previous Message Tomaz Borstnar 2005-02-28 17:50:13 maximum number of schemas per database?

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-02-28 18:10:15 Re: Suggestion for parameterized queries
Previous Message Markus Wollny 2005-02-28 17:32:41 Problems with pgcrypto and special characters