Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7A5251337B34 for ; Mon, 7 Feb 2011 19:13:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 29735-09 for ; Mon, 7 Feb 2011 23:13:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 52A841337B8A for ; Mon, 7 Feb 2011 19:13:02 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id AE7BE348026; Mon, 7 Feb 2011 15:12:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U2D1efhJy9dI; Mon, 7 Feb 2011 15:12:53 -0800 (PST) Received: from [192.168.1.101] (71-94-248-62.dhcp.mdfd.or.charter.com [71.94.248.62]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 7C45A348025; Mon, 7 Feb 2011 15:12:53 -0800 (PST) Subject: Re: Write-heavy pg_stats_collector on mostly idle server From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Josh Berkus Cc: =?ISO-8859-1?Q?C=E9dric?= Villemain , pgsql-performance@postgresql.org In-Reply-To: <4D507920.2030909@agliodbs.com> References: <4D4C4E15.20401@agliodbs.com> <4D507920.2030909@agliodbs.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Mon, 07 Feb 2011 15:12:36 -0800 Message-ID: <1297120356.18411.197.camel@jd-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/290 X-Sequence-Number: 42428 On Mon, 2011-02-07 at 14:58 -0800, Josh Berkus wrote: > >> Anyone seen anything like this before? > >> > > > > it is the expected behavior, IIRC > > OK. It just seems kind of pathological for stats file writing to be 10X > the volume of data writing. I see why it's happening, but I think it's > something we should fix. I don't think it is expected. As I recall, it is something we fixed a couple of major versions back (8.2?). It used to be that stats would write every 500ms. We changed that to when they are asked for (via a select from the table or something). Specifically because it could cause this type of problem. Am I thinking of something else? I remember going back and forth with tgl about this, tgl? JD > > -- > -- Josh Berkus > PostgreSQL Experts Inc. > http://www.pgexperts.com > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt