Re: Restore db

From: Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Restore db
Date: 2011-11-14 00:43:57
Message-ID: CAM6mieLSg=AiUuNmyUVkXP_8A40WC8g2q0tAQdXnjBfG2JfnVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hi,

On 14 November 2011 11:09, Alexander Burbello <burbello(at)yahoo(dot)com(dot)br> wrote:
> What can I do to tune this database to speed up this restore??
> My current db parameters are:
> shared_buffers = 256MB
> maintenance_work_mem = 32MB

You should increase maintenance_work_mem as much as you can.
full_page_writes, archive_mode and auto_vacuum should be disable
during restore. Increase checkpoint_segments (for example to 64) and
set wal_buffers to 16MB. 8.4 introduced parallel restore (pg_restore
option -j <num jobs>).

Maybe you can't do anything mentioned above because it is not possible
to restart server (you can change maintenance_work_mem via PGOPTIONS)
or there is a single table to import (-j is not aplicable) -- try to
drop indexes and recreate them after import.

--
Ondrej Ivanic
(ondrej(dot)ivanic(at)gmail(dot)com)

In response to

  • Restore db at 2011-11-14 00:09:25 from Alexander Burbello

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Colson 2011-11-14 01:22:31 Re: Restore db
Previous Message Alexander Burbello 2011-11-14 00:35:46 Restore db

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2011-11-14 01:22:31 Re: Restore db
Previous Message Alexander Burbello 2011-11-14 00:35:46 Restore db