Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxIEI-0007TL-1k for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2013 14:20:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TxIEH-0008EE-6E for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2013 14:20:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxIEA-00089r-SA for pgsql-general@postgresql.org; Mon, 21 Jan 2013 14:19:58 +0000 Received: from smtp170.dfw.emailsrvr.com ([67.192.241.170]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxIE8-0000ME-Uj for pgsql-general@postgresql.org; Mon, 21 Jan 2013 14:19:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp17.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 6717E189974; Mon, 21 Jan 2013 09:19:55 -0500 (EST) X-Virus-Scanned: OK Received: by smtp17.relay.dfw1a.emailsrvr.com (Authenticated sender: cernst-AT-zvelo.com) with ESMTPSA id 24E4A189955; Mon, 21 Jan 2013 09:19:55 -0500 (EST) Message-ID: <50FD4E89.3050805@zvelo.com> Date: Mon, 21 Jan 2013 07:19:53 -0700 From: Chris Ernst Organization: Zvelo, Inc. User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: pgsql-general@postgresql.org, udayabhanu1984@hotmail.com Subject: Re: pg_Restore References: , <205AA39F-C998-4628-9AE9-430C4061CDF8@teksol.info> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 01/20/2013 11:17 PM, bhanu udaya wrote: > I am trying to restore 9.5G database (1GB dumpfile) which has 500 > schemas with 1 lakh rows in each schema. Could take the data dump using > pg_dump and it takes around 40 minutes. I tried to use pg_restore to > restore this dump, but it takes hours to restore the dump. I have used > the configurations parameters as .... > 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. Probably not what you want to hear, but I think This is a completely unrealistic expectation. If it takes 40 minutes for pg_dump, I would expect pg_restore to take at least as long and likely significantly longer (assuming both are done on similar hardware). pg_dump only has to read the schema(s) and data and write them to a file. pg_restore has to read write the schema and data into a new database *AND* re-create all of the indexes, analyze, check referential integrity...... So if the dump is taking 40 minutes, I would expect the restore to take somewhere in the 60-90 minute range, depending on the number of and complexity of the indexing. - Chris -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general