pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: ogjunk-pgjedan@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Fastest DB restore options
Date: Thu, 22 Feb 2007 15:13:58 -0300
Message-ID: <20070222181358.GM4276@alvh.no-ip.org> (raw)
In-Reply-To: <584838.18991.qm@web50301.mail.yahoo.com>
References: <584838.18991.qm@web50301.mail.yahoo.com>

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.



view thread (9+ messages)  latest in thread

Message-ID: <20070222181358.GM4276@alvh.no-ip.org>
Permalink:  ../20070222181358.GM4276@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070222181358.GM4276@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@commandprompt.com, ogjunk-pgjedan@yahoo.com
  Subject: Re: Fastest DB restore options
  In-Reply-To: <20070222181358.GM4276@alvh.no-ip.org>
  References: <584838.18991.qm@web50301.mail.yahoo.com> <20070222181358.GM4276@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox