Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 18570632F50 for ; Fri, 12 Feb 2010 09:22:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 26318-06 for ; Fri, 12 Feb 2010 13:21:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 274D3632C31 for ; Fri, 12 Feb 2010 09:22:05 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 12 Feb 2010 07:22:02 -0600 Message-Id: <4B750193020000250002F22D@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 12 Feb 2010 07:21:55 -0600 From: "Kevin Grittner" To: Cc: ,, , Subject: Re: moving pg_xlog -- yeah, it's worth it! Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.723 tagged_above=-10 required=5 tests=AWL=-0.613, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/197 X-Sequence-Number: 37618 Hannu Krosing wrote: > Can it be, that each request does at least 1 write op (update > session or log something) ? Well, the web application connects through a login which only has SELECT rights; but, in discussing a previous issue we've pretty well established that it's not unusual for a read to force a dirty buffer to write to the OS. Perhaps this is the issue here again. Nothing is logged on the database server for every request. > If you can, set > > synchronous_commit = off; > > and see if it further increases performance. I wonder if it might also pay to make the background writer even more aggressive than we have, so that SELECT-only queries don't spend so much time writing pages. Anyway, given that these are replication targets, and aren't the "database of origin" for any data of their own, I guess there's no reason not to try asynchronous commit. Thanks for the suggestion. -Kevin