Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6HHECa60133 for ; Tue, 17 Jul 2001 13:14:12 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f6HGjgX25376; Tue, 17 Jul 2001 12:45:42 -0400 (EDT) To: "Marian Sabo" cc: pgsql-admin@postgresql.org Subject: Re: HOW-TO migrate database In-reply-to: <9j0rkk$1ugo$1@news.tht.net> References: <9j0rkk$1ugo$1@news.tht.net> Comments: In-reply-to "Marian Sabo" message dated "Tue, 17 Jul 2001 10:05:02 +0200" Date: Tue, 17 Jul 2001 12:45:42 -0400 Message-ID: <25373.995388342@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/88 X-Sequence-Number: 1846 "Marian Sabo" writes: > I have a many databases on server "one" in postgres-6.5.2 > How can I copy my databases to a new server with new postgres vsersion > (7.1.2) ? > on first server I run : pg_dumpall -o > outputfile, but on new server > pg_restore don't understand the data format. pg_dumpall is the right approach, though I would not recommend using -o. Possibly you will need to do a little bit of editing to cope with changes from 6.5 to 7.1, although it surprises me to hear it. What problems are you seeing, exactly, when you try to load the dump script? regards, tom lane