Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D36BD6322B6 for ; Fri, 16 Apr 2010 13:40:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 01659-06 for ; Fri, 16 Apr 2010 16:39:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 44493632374 for ; Fri, 16 Apr 2010 13:39:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o3GGdsgd011004; Fri, 16 Apr 2010 12:39:54 -0400 (EDT) To: Josh Kupershmidt cc: Chris , pgsql-performance@postgresql.org Subject: Re: stats collector suddenly causing lots of IO In-reply-to: <10744.1271435146@sss.pgh.pa.us> References: <20100413170105.GA29571@chris-laptop.a2hosting.com> <25952.1271370711@sss.pgh.pa.us> <20100416151900.GA3179@chris-laptop.a2hosting.com> <9857.1271431787@sss.pgh.pa.us> <10744.1271435146@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 16 Apr 2010 12:25:46 -0400" Date: Fri, 16 Apr 2010 12:39:54 -0400 Message-ID: <11003.1271435994@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/215 X-Sequence-Number: 38465 I wrote: > So this *should* have resulted in the stats file shrinking. Did you > happen to notice if it did, after you did this? Oh, never mind that --- I can see that it did shrink, just from counting the write() calls in the collector's strace. So what we have here is a demonstration that the tabpurge mechanism does work for you, when it's invoked. Which is further evidence that for some reason autovacuum is not running for you. What I'd suggest at this point is cranking up log_min_messages to DEBUG2 or so in postgresql.conf, restarting the postmaster, and keeping an eye on the log to see if you can spot anything about why autovac isn't working. regards, tom lane