Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 45199B5DBC8 for ; Tue, 27 Sep 2011 10:49:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 15476-06 for ; Tue, 27 Sep 2011 13:49:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 31CF5B5DBC7 for ; Tue, 27 Sep 2011 10:49:18 -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 p8RDnE9m022113; Tue, 27 Sep 2011 09:49:15 -0400 (EDT) To: Royce Ausburn cc: pgsql-performance Subject: Re: Ineffective autovacuum In-reply-to: <2499AF8B-FB90-40F9-9CF7-5BDC0F33BE6E@inomial.com> References: <059E65EF-8C66-4DA6-835C-936D6592C94B@inomial.com> <14103.1317097282@sss.pgh.pa.us> <2499AF8B-FB90-40F9-9CF7-5BDC0F33BE6E@inomial.com> Comments: In-reply-to Royce Ausburn message dated "Tue, 27 Sep 2011 15:08:26 +1000" Date: Tue, 27 Sep 2011 09:49:14 -0400 Message-ID: <22112.1317131354@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/392 X-Sequence-Number: 45168 Royce Ausburn writes: > Since sending this first email I've up'd the autovacuum log level and I've noticed that the same tables seem to be auto vacuum'd over and over again… Some of the tables are a bit surprising in that they're updated semi-regularly, but not enough (I'd think) to warrant an autovacuum every few minutes… Is this unusual? Well, that proves autovacuum isn't getting blocked anyway. At this point I suspect that Marti has fingered the correct issue: you likely need to increase the FSM settings. You should try running a manual VACUUM VERBOSE and see if it suggests that more FSM space is needed (there'll be some FSM stats at the end of the verbose printout). > Perhaps unrelated: I've done some digging around and happened across a nightly task doing: > select pg_stat_reset() > on each of the databases in the cluster…. I've no idea why we're doing that (and our usual sysadmin / DBA has resigned, so I doubt I'll ever know). There must have been a reason at the time, but I wonder if this might be interfering with things? Hmm, it's not helping any. Anything that needs vacuuming, but less often than once a day, would get missed due to the stats getting forgotten. regards, tom lane