X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 71B6811F65EA for ; Mon, 24 Apr 2006 15:04:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 50159-01-6 for ; Mon, 24 Apr 2006 15:04:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id 900EF11F6C8B for ; Mon, 24 Apr 2006 14:27:42 -0300 (ADT) Received: from [195.112.43.22] (helo=[192.168.0.7]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1FY4qa2xvk-0008F0; Mon, 24 Apr 2006 19:27:41 +0200 Subject: Re: Recovery will take 10 hours From: Simon Riggs To: Brendan Duddridge Cc: PostgreSQL Performance In-Reply-To: References: <85A15B2E-F59C-4FEF-82D4-61F48ABDCDE5@clickspace.com> <1145808368.3112.222.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 24 Apr 2006 18:27:31 +0100 Message-Id: <1145899652.3112.326.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-4.fc4) Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:726643fe08f41a451f0fe7fa43bce239 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/523 X-Sequence-Number: 18607 On Sun, 2006-04-23 at 22:46 -0600, Brendan Duddridge wrote: > So how do you overlap the restore process with the retrieving of files? The restore command can be *anything*. You just write a script... > Our restore command is: > > restore_command = 'gunzip %p' > > If I change it to: > > restore_command = 'gunzip %p &' > > to execute the restore command in the background, will that do the > trick? No, but you can execute a shell script that does use & internally. > But I don't think the real problem was the retrieval of the files. It > only > took maybe 1/2 a second to retrieve the file, but often took anywhere > from > 5 to 30 seconds to process the file. More so on the longer end of the > scale. Sorry, thought you meant the decompression time. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com/