X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5A8959F9CC1 for ; Wed, 21 Jun 2006 13:44:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 17984-08 for ; Wed, 21 Jun 2006 13:44:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 531F49FA65C for ; Wed, 21 Jun 2006 13:44:40 -0300 (ADT) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id 796EB55C003; Wed, 21 Jun 2006 18:44:39 +0200 (CEST) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 18:45:00 +0200 Subject: Re: Help tuning autovacuum - seeing lots of relationbloat From: Csaba Nagy To: jody brownell Cc: postgres performance list In-Reply-To: <200606211339.33262.jody.brownell@q1labs.com> References: <200606211052.43227.jody.brownell@q1labs.com> <200606211321.06253.jody.brownell@q1labs.com> <1150907799.3309.53.camel@coppola.muc.ecircle.de> <200606211339.33262.jody.brownell@q1labs.com> Content-Type: text/plain Message-Id: <1150908279.3309.56.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 21 Jun 2006 18:44:39 +0200 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Jun 2006 16:45:00.0068 (UTC) FILETIME=[0930AE40:01C69552] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/407 X-Sequence-Number: 19764 On Wed, 2006-06-21 at 18:39, jody brownell wrote: > that is exactly what I am seeing, one process, no change, always in idle while the others are constantly > changing their state. > > looks like someone opened a tx then is blocking on a queue lock or something. dang. Don't forget to check the statistics collector settings (see below), if that is not correct then autovacuum is indeed not working correctly... I should have put that on the beginning of the mail so you won't overlook it ;-) > > > > Oh, just occured to me... in order to use autovacuum you also need to > > enable the statistics collector on row level: > > > > stats_start_collector = on > > stats_row_level = on > > > > See also: > > http://www.postgresql.org/docs/8.1/static/maintenance.html#AUTOVACUUM > > > > This was not mentioned in the settings in your original post, so I guess > > you didn't touch that, and I think they are disabled by default. > > > > If this is disabled, you should enable it and "pg_ctl reload ....", that > > should fix the problem. > > > > Cheers, > > Csaba.