pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: ogjunk-pgjedan@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Fastest DB restore options
Date: Thu, 22 Feb 2007 08:05:10 -0800
Message-ID: <45DDBF36.5020302@commandprompt.com> (raw)
In-Reply-To: <821429.69798.qm@web50304.mail.yahoo.com>
References: <821429.69798.qm@web50304.mail.yahoo.com>

ogjunk-pgjedan@yahoo.com wrote:
> Hello,
> 
> I have a fairly large DB to dump and restore as fast as possible.  I'm moving from 8.0.3 to 8.2.3! :)
> 
> I normally dump with these options:
> 
>   -d MyDB --clean --inserts --column-inserts --format=P
> 
> But the last time I tried that, the restore took foreeeeeeeeeeeeeever.  So I'm looking for the fastest way to import data from the old DB to the new one.  Judging from pg_dump man page the following should be the fastest dump & restore:
> 
>   -d MyDB --format=c --ignore-version
>  
> Is there anything else I can do to make the restore as fast as possible?

Don't use -d, it means dump as inserts.

Joshua D. Drake


> 
> Thanks,
> Otis
> 
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> Simpy -- http://www.simpy.com/  -  Tag  -  Search  -  Share
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
> 


-- 

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/




view thread (9+ messages)  latest in thread

Message-ID: <45DDBF36.5020302@commandprompt.com>
Permalink:  ../45DDBF36.5020302@commandprompt.com/
Also on:    postgresql.org/message-id/45DDBF36.5020302@commandprompt.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, ogjunk-pgjedan@yahoo.com
  Subject: Re: Fastest DB restore options
  In-Reply-To: <45DDBF36.5020302@commandprompt.com>

* 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