From: Richard Huxton <dev@archonet.com>
To: dforums <dforums@vieonet.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: Restoration of datas
Date: Fri, 08 Aug 2008 08:56:50 +0100
Message-ID: <489BFC42.8040603@archonet.com> (raw)
In-Reply-To: <489BF4DE.4060504@vieonet.com>
References: <489BF4DE.4060504@vieonet.com>
dforums wrote:
> COuld you advice me on which restoration method is the faster. To
> upgrade from postgresql 8.1.11 to 8.3.3.
Using the pg_dump from your 8.3 package, dump the database using -Fc to
get a nicely compressed dump. Then use pg_restore to restore it. If you
add a --verbose flag then you will be able to track it.
You might want to set fsync=off while doing the restore. This is safe
since if the machine crashes during restore you just start again. Oh,
and increase work_mem too - there's only going to be one process.
What will take the most time is the creating of indexes etc.
It will take a long time to do a full restore though - you've got 64GB
of data and slow disks.
--
Richard Huxton
Archonet Ltd
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-performance@postgresql.org
Cc: dev@archonet.com, dforums@vieonet.com
Subject: Re: Restoration of datas
In-Reply-To: <489BFC42.8040603@archonet.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