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 D103D9FA19B for ; Wed, 21 Jun 2006 12:27:22 -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 07850-02 for ; Wed, 21 Jun 2006 12:27:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from q1exch01.Q1LABS.INC (Q1EXCH01.Q1Labs.com [205.174.165.4]) by postgresql.org (Postfix) with ESMTP id 32EDE9FA42B for ; Wed, 21 Jun 2006 12:27:09 -0300 (ADT) Received: from q1exch02.Q1LABS.INC ([10.100.50.8]) by q1exch01.Q1LABS.INC with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:27:06 -0300 X-PMWin-Version: 2.5.0e, Antispam-Engine: 2.3.0.1, Antivirus-Engine: 2.34.3 thread-index: AcaVRydr+C4xGUiZQiOxxqabSMb9XA== Received: from [10.100.100.123] ([10.100.100.123]) by q1exch02.Q1LABS.INC with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Jun 2006 12:27:06 -0300 From: "jody brownell" To: "Csaba Nagy" Subject: Re: Help tuning autovacuum - seeing lots of relationbloat Date: Wed, 21 Jun 2006 12:27:06 -0300 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 User-Agent: KMail/1.8.3 Cc: "postgres performance list" References: <200606211052.43227.jody.brownell@q1labs.com> <1150898912.3309.23.camel@coppola.muc.ecircle.de> In-Reply-To: <1150898912.3309.23.camel@coppola.muc.ecircle.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200606211227.06618.jody.brownell@q1labs.com> X-OriginalArrivalTime: 21 Jun 2006 15:27:06.0320 (UTC) FILETIME=[276B5500:01C69547] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/400 X-Sequence-Number: 19757 Our application is broken down quite well. We have two main writing processes writing to two separate sets of tables. No crossing over, nothign to prohibit the vacuuming in the nature which you describe. My longest transaction on the tables in question are typically quite short until of course they begin to bloat. On Wednesday 21 June 2006 11:08, Csaba Nagy wrote: > > So, it appears my autovacuum is just NOT working... I must have screwed something up, but I cannot see what. > > Is it possible that you have long running transactions ? If yes, VACUUM > is simply not efficient, as it won't eliminate the dead space > accumulated during the long running transaction. In that case VACUUM > FULL won't help you either as it also can't eliminate dead space still > visible by old transactions, but from what you say I guess you really > stop everything before doing VACUUM FULL so you might as well stopped > the culprit transaction too... that's why the VACUUM FULL worked (if my > assumption is correct). > > To check if this is the case, look for "idle in transaction" in your > process listing (ps auxww|grep "idle in transaction"). If you got one > (or more) of that, you found your problem. If not, hopefully others will > help you :-) > > Cheers, > Csaba. > > > >