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 83AAE3A43A4 for ; Mon, 1 Nov 2004 03:25:32 +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 69529-01 for ; Mon, 1 Nov 2004 03:25:22 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 6AA843A43E2 for ; Mon, 1 Nov 2004 03:25:24 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id iA13POs27781; Sun, 31 Oct 2004 22:25:24 -0500 (EST) From: Bruce Momjian Message-Id: <200411010325.iA13POs27781@candle.pha.pa.us> Subject: Re: pg_restore TODO - delay PK creation In-Reply-To: <017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb> To: Iain Date: Sun, 31 Oct 2004 22:25:24 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/6 X-Sequence-Number: 15391 Iain wrote: > Hi Bruce, > > OK, I've just looked into it and you are right, thanks. > > In the case I just tested I restored a 7.1 dump to a 7.4.6 db. I had assumed > that this is a restore time issue but in fact it is dependent on the format > of the dump file. I noticed the problem after the data load failed and I > checked the description of the table in question, it had a primary key. > > Worth noting for anybody preparing to upgrade large databases from old > versions. This db takes 8 hours to restore on 7.1 but I just dumped it and > restored it in less than 20 minutes total on 7.4 :) Quite a dramatic improvement, though 7.1 is in the ancient category. > I havn't used 7.4 for dumping/restoring for a long time so I had forgotten > how it worked. We're just starting a redevelopment that will include an > upgrade of the production db so I'm looking forward to working with 7.4 > again, though I'd like to be working on v8. > > Out of interest, what is the word on using newer versions of pg_dump on > older verisons of the DB - is it is possible or even wise to unload a 7.1 > DB with the 7.4 version of pg? It should work. I see version checks for >=70100 in the code so you should be fine using 7.4 or 8.0 pg_dump for 7.1. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073