X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D703556758; Mon, 28 Feb 2005 18:10:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90844-08; Mon, 28 Feb 2005 18:10:09 +0000 (GMT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id 6042156793; Mon, 28 Feb 2005 18:09:02 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1D5pIU-0004Vf-4b; Mon, 28 Feb 2005 18:07:10 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id D597D1657F; Mon, 28 Feb 2005 18:08:58 +0000 (GMT) Message-ID: <42235E3B.60808@archonet.com> Date: Mon, 28 Feb 2005 18:08:59 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Envbop Cc: pgsql-admin@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Newbie - Pointers on moving. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.062 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200502/326 X-Sequence-Number: 16494 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