From: bhanu udaya <udayabhanu1984@hotmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: François Beausoleil <francois@teksol.info>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: pg_Restore
Date: Mon, 21 Jan 2013 15:01:04 +0530
Message-ID: <COL002-W496618C32835A9B194AE07D3170@phx.gbl> (raw)
In-Reply-To: <CABUevEze1gmkq1eXzF=tHkpyUXYDz6TjjT8KhwgRUhDReyXmvg@mail.gmail.com>
References: <COL002-W91D920E81B347335FEE275D3100@phx.gbl>
<COL002-W617531EF00D8D476E3F90CD3170@phx.gbl>
<205AA39F-C998-4628-9AE9-430C4061CDF8@teksol.info>
<COL002-W85138B69892E14D07066A5D3170@phx.gbl>
<CABUevEze1gmkq1eXzF=tHkpyUXYDz6TjjT8KhwgRUhDReyXmvg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Hello,Greetings !I tried with all the below options. It approximatly takes 1 hour 30 minutes for restoring a 9GB database. This much time can not be affordable as the execution of test cases take only 10% of this whole time and waiting 1 hour 30 minutes after every test case execution is alot for the team. Kindly let me know if we can reduce the database restoration time . Thanks and RegardsRadha Krishna
Date: Mon, 21 Jan 2013 08:15:47 +0100
Subject: Re: [GENERAL] pg_Restore
From: magnus@hagander.net
To: udayabhanu1984@hotmail.com
CC: francois@teksol.info; pgsql-general@postgresql.org
On Jan 21, 2013 7:17 AM, "bhanu udaya" <udayabhanu1984@hotmail.com> wrote:
>
>
> Hello,
> Greetings !
> Thank you for the prompt reply. I have changed the settings as listed below:
> > > shared_buffers = 1024MB
> > > work_mem = 512MB
> > > maintenance_work_mem = 512MB
> > > wal_buffers = 100MB
> > fsync = off # ONLY DURING INITIAL DATA LOAD!
> > checkpoint_segments = 128 # large value, such as 128 or 256 (16MB per file, check disk space)
> > checkpoint_timeout = 30min
> > checkpoint_completion_target = 0.9
> > wal_level = minimal # You'll need to do a full base backup if you use this
> But, have same problem. It is almost 1 hour now, the restoration is still going on. After every test case execution, we would like to refresh the database and expected refresh should be completed in less than 10 minutes. Is this achievable with the kind of configuration I have listed in my earlier email.
>
> Kindly help , as how to speed up this restoration process.
>
Try running pg_restore with the -1 option. If that doesn't help, try -m4 or something like that (you'll have to remove the first option then, can't use both at once)
But it's going to be pushing it anyway. Your scenario is going to create thousands of files (assuming you have multiple tables in each of your schemas as is normal), and that's just not something ntfs does very fast. Once the files are there, I bet loading the data is reasonably fast since it can't be all that big....
/Magnus =
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-general@postgresql.org
Cc: udayabhanu1984@hotmail.com, magnus@hagander.net, francois@teksol.info
Subject: Re: pg_Restore
In-Reply-To: <COL002-W496618C32835A9B194AE07D3170@phx.gbl>
References: <COL002-W91D920E81B347335FEE275D3100@phx.gbl> <COL002-W617531EF00D8D476E3F90CD3170@phx.gbl> <205AA39F-C998-4628-9AE9-430C4061CDF8@teksol.info> <COL002-W85138B69892E14D07066A5D3170@phx.gbl> <CABUevEze1gmkq1eXzF=tHkpyUXYDz6TjjT8KhwgRUhDReyXmvg@mail.gmail.com> <COL002-W496618C32835A9B194AE07D3170@phx.gbl>
* 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