Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0B32D9FB276 for ; Wed, 29 Nov 2006 15:14:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 64503-02 for ; Wed, 29 Nov 2006 15:14:18 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from ns1.peker.com.pl (181-ego-2.acn.waw.pl [62.121.85.181]) by postgresql.org (Postfix) with SMTP id 24BB69FB1DD for ; Wed, 29 Nov 2006 15:14:21 -0400 (AST) Received: (qmail 11134 invoked by uid 540); 29 Nov 2006 19:04:39 -0000 Received: from 83.143.210.69 by ns1.peker.com.pl (envelope-from , uid 401) with qmail-scanner-1.25st (clamdscan: 0.82/760. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:0(83.143.210.69):SA:0(-2.6/8.0):. Processed in 6.253674 secs); 29 Nov 2006 19:04:39 -0000 Received: from host69-83-143-210.limes.com.pl (HELO ?10.0.1.69?) (informatyka-adamr@83.143.210.69) by ns1.peker.com.pl with SMTP; 29 Nov 2006 19:04:32 -0000 Message-ID: <456DDBA2.1050109@informatyka.gdansk.pl> Date: Wed, 29 Nov 2006 20:12:34 +0100 From: =?UTF-8?B?QWRhbSBSYWTFgm93c2tp?= User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: eddy@axa.it CC: pgsql-admin@postgresql.org Subject: Re: dump from 8.x restore to 7.3.x References: <456D992A.90903@axa.it> In-Reply-To: <456D992A.90903@axa.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/238 X-Sequence-Number: 23765 I wrote to Peter Wilson some day ago: I had problems, like that. I've omitted them using "plain" format (SQL script file) of dump file. I restore data from "plain" format with psql - using command "\i FILE". It work always. If You gzip this "plain" file - You become simillar volume of file using binary dump format. ...And in Your case (downgrade) You can do this way. When in the script will be something incopatbile with PostgreSQL 7.3 - You can simply edit the SQL script. I've imported for expample in this way MySQL scripts made in MySQL into PostgreSQL. Greetings Adam Edoardo Ceccarelli wrote: > Hi to all, > > We have a pretty big database that is going for an upgrade (PG7 -> PG8) > in the next few days, we have tested all the features of our application > but we cannot be sure that everything will work out perfectly (db is > managing several blob's only tables that have proven to be pretty hard > to configure). > I am currently investigating a worst-case-scenario strategy that would > be to downgrade the database from PG8 to 7 if anything goes wrong;00 > this implies that we: > 1) dump from a running PG8 > 2) remove PG8 and reinstall PG7 > 3) restore the dump into the running PG7 > > unfortunately pg_restore complains about the dump header and doesn't > restore the db at all, having tried to dump with both -Ft and -Fc flags > > shall I try the "--ignore-version" option in pg_restore? > is there going to be any problem in using this option? (corrupted data, > tables, etc.) > > Thanks, any help appreciated > Edoardo > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > >