Re: pg_Restore - Mailing list pgsql-general

From Albe Laurenz
Subject Re: pg_Restore
Date
Msg-id A737B7A37273E048B164557ADEF4A58B0579BFDF@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Re: pg_Restore  (bhanu udaya <udayabhanu1984@hotmail.com>)
Responses Re: pg_Restore  (dinesh kumar <dineshkumar02@gmail.com>)
Re: pg_Restore  (Chris Travers <chris.travers@gmail.com>)
List pgsql-general
bhanu udaya wrote:
> 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 .

I don't know if that helps, but have you tried creating a template database
and doing DROP DATABASE xxx; CREATE DATABASE xxx TEMPLATE mytemplate;
instead of restoring a dump every time?

Maybe that is faster.

Yours,
Laurenz Albe


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Running update in chunks?
Next
From: dinesh kumar
Date:
Subject: Re: pg_Restore