From: Marco Bizzarri <marco.bizzarri@gmail.com>
To: ogjunk-pgjedan@yahoo.com <ogjunk-pgjedan@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Fastest DB restore options
Date: Thu, 22 Feb 2007 21:47:37 +0100
Message-ID: <3f0d61c40702221247t14229abfx16ddfbe50a288e42@mail.gmail.com> (raw)
In-Reply-To: <821429.69798.qm@web50304.mail.yahoo.com>
References: <821429.69798.qm@web50304.mail.yahoo.com>
On 2/22/07, ogjunk-pgjedan@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?
>
> Thanks,
> Otis
I'm not sure it is advisable, or it is even faster in current
implementation. In older ones, if you configure postgresql not to sync
after each write, you could end in a faster restore. Since this is a
restore, after all, if lights goes out, you can always throw all away
and start from scratch...
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
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: marco.bizzarri@gmail.com, ogjunk-pgjedan@yahoo.com
Subject: Re: Fastest DB restore options
In-Reply-To: <3f0d61c40702221247t14229abfx16ddfbe50a288e42@mail.gmail.com>
References: <821429.69798.qm@web50304.mail.yahoo.com> <3f0d61c40702221247t14229abfx16ddfbe50a288e42@mail.gmail.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