Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 374D99FBCA1 for ; Thu, 22 Feb 2007 14:14:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 10633-04 for ; Thu, 22 Feb 2007 14:14:01 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id D22109FB63C for ; Thu, 22 Feb 2007 14:14:00 -0400 (AST) Received: from perhan.alvh.no-ip.org (216-155-79-222.bk1-dsl.surnet.cl [216.155.79.222]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l1MIE1UN024568; Thu, 22 Feb 2007 10:14:02 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8812C32A17; Thu, 22 Feb 2007 15:13:58 -0300 (CLST) Date: Thu, 22 Feb 2007 15:13:58 -0300 From: Alvaro Herrera To: ogjunk-pgjedan@yahoo.com Cc: pgsql-admin@postgresql.org Subject: Re: Fastest DB restore options Message-ID: <20070222181358.GM4276@alvh.no-ip.org> Mail-Followup-To: ogjunk-pgjedan@yahoo.com, pgsql-admin@postgresql.org References: <584838.18991.qm@web50301.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <584838.18991.qm@web50301.mail.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 22 Feb 2007 10:14:02 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.186 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/296 X-Sequence-Number: 24761 ogjunk-pgjedan@yahoo.com wrote: > > -d MyDB --format=c --ignore-version > > Don't use --ignore-version; it's a good way to shoot yourself in the foot. > > OG: even when upgrading (8.0.3 -> 8.2.3)? I'll dump with pg_dump from 8.0.3 and them import with pg_restore from the newly installed 8.2.3. Wouldn't I *have to* use --ignore-version for that to work? The recommended procedure is to use 8.2.3's pg_dump, not 8.0's, to connect to the old database. And no, you don't need --ignore-version for that, because pg_dump knows how to talk to previous server versions. That switch is there only for connecting to a database of a _newer_ version that pg_dump's, and it's generally problematic because sometimes an older pg_dump doesn't know how to read the newer system catalogs. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.