Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 86A879FB2A3 for ; Mon, 28 May 2007 17:43:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 99974-03 for ; Mon, 28 May 2007 17:43:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from [66.135.97.2] (wmqhotel.2.ADSL.NetSurf.Net [66.135.97.2]) by postgresql.org (Postfix) with ESMTP id 3F5739FB24C for ; Mon, 28 May 2007 17:43:13 -0300 (ADT) Received: from [192.168.123.112] ([10.1.251.249]) by [66.135.97.2] (8.13.6/8.13.6) with ESMTP id l4SKg1L3017375; Mon, 28 May 2007 16:42:02 -0400 Subject: Re: PITR performance costs From: Simon Riggs To: Dave Cramer Cc: postgresql performance list In-Reply-To: <81165B3E-1099-4388-88F1-FA27A3AD92BC@fastcrypt.com> References: <81165B3E-1099-4388-88F1-FA27A3AD92BC@fastcrypt.com> Content-Type: text/plain Date: Mon, 28 May 2007 21:40:08 +0100 Message-Id: <1180384809.26297.11.camel@silverbirch.site> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/576 X-Sequence-Number: 24966 On Mon, 2007-05-28 at 08:45 -0400, Dave Cramer wrote: > Since PITR has to enable archiving does this not increase the amount > of disk I/O required ? As Heikki says, some operations need logging when PITR is on; these are now documented in the performance tips section of the latest dev docs: http://developer.postgresql.org/pgdocs/postgres/populate.html#POPULATE-PITR This isn't additional logging because of PITR, its just that we've had to exclude PITR from some recent tuning operations. I'll be looking at ways of making that optional in certain cases. Overall, the cost of shipping WAL files away has been measured in large scale tests by Mark Wong to be around 1% drop in measured peak transaction throughput, tests about ~2 years ago now on 8.0. It's possible that has increased as we have further tuned the server, but I'm thinking its still fairly negligible overall. Replication solutions currently weigh in significantly more than this overhead, which is one reason to make me start thinking about log based replication in future releases. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com