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 54C623A43DA for ; Mon, 1 Nov 2004 03:36:29 +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 71302-04 for ; Mon, 1 Nov 2004 03:36:24 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 078A63A43B2 for ; Mon, 1 Nov 2004 03:36:27 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iA13aMcq004250; Sun, 31 Oct 2004 22:36:22 -0500 (EST) To: "Iain" Cc: "Bruce Momjian" , pgsql-admin@postgresql.org Subject: Re: pg_restore TODO - delay PK creation In-reply-to: <017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb> References: <200411010236.iA12a6V19009@candle.pha.pa.us> <017e01c4bfc0$6d17d140$7201a8c0@mst1x5r347kymb> Comments: In-reply-to "Iain" message dated "Mon, 01 Nov 2004 12:11:00 +0900" Date: Sun, 31 Oct 2004 22:36:22 -0500 Message-ID: <4249.1099280182@sss.pgh.pa.us> From: Tom Lane 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/7 X-Sequence-Number: 15392 "Iain" writes: > 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? Standard, recommended procedure is to use the later version of pg_dump to unload data from the old server. This gets you the benefit of any bug fixes in the newer pg_dump (of which there are always some...) Note that pg_dump is usually not designed to produce output that will load into back-release servers, so this only applies to cross-version upgrades. You can't use the 7.4 pg_dump against a 7.1 server and expect to get a dump file that will load back into the 7.1 server --- more than likely, the dump file will make use of features that weren't in 7.1. regards, tom lane