Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E460464FF8E for ; Thu, 17 Jul 2008 19:56:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77154-07 for ; Thu, 17 Jul 2008 19:56:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mk-outboundfilter-3.mail.uk.tiscali.com (mk-outboundfilter-3.mail.uk.tiscali.com [212.74.114.23]) by postgresql.org (Postfix) with ESMTP id 02DBF64FF11 for ; Thu, 17 Jul 2008 19:56:11 -0300 (ADT) X-Trace: 146595190/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$F2S-NILDRAM-ACCEPTED/f2s-temporary-group/85.211.229.155 X-SBRS: None X-RemoteIP: 85.211.229.155 X-IP-MAIL-FROM: simon@2ndquadrant.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApgAACZrf0hV0+Wb/2dsb2JhbAAIsGY X-IronPort-AV: E=Sophos;i="4.31,206,1215385200"; d="scan'208";a="146595190" X-IP-Direction: IN Received: from 85-211-229-155.dyn.gotadsl.co.uk (HELO [192.168.0.3]) ([85.211.229.155]) by smtp.f2s.tiscali.co.uk with ESMTP; 17 Jul 2008 23:56:09 +0100 Subject: Re: Is autovacuum doing a wraparound-avoiding VACUUM? From: Simon Riggs To: Alvaro Herrera Cc: List pgsql-patches In-Reply-To: <20080717211044.GR3934@alvh.no-ip.org> References: <1216227339.19656.364.camel@ebony.2ndQuadrant> <20080717211044.GR3934@alvh.no-ip.org> Content-Type: text/plain Date: Fri, 18 Jul 2008 00:02:09 +0100 Message-Id: <1216335729.19656.683.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/175 X-Sequence-Number: 6869 On Thu, 2008-07-17 at 17:10 -0400, Alvaro Herrera wrote: > Simon Riggs wrote: > > > > Is autovacuum doing a wraparound-avoiding VACUUM? > > Currently, no easy way to tell. > > > > Patch to change message of autovac in pg_stat_activity when we are > > performing an anti-wraparound VACUUM. > > I just obsoleted this patch. The new patch should be easier to do > though -- just a one line change I think. > > I don't like your wording though; it feels too verbose (and you're > losing the ANALYZE in case it's doing both things). How about > > snprintf(activity, MAX_AUTOVAC_ACTIV_LEN, > "autovacuum: VACUUM%s%s", vac > tab->at_doanalyze ? " ANALYZE" : "", > tab->at_wraparound ? " (wraparound)" : ""); Yes, looks good. Losing the ANALYZE was conscious, but in retrospect is something we might live to regret. Yours is better. > You're not proposing it for 8.3 right? I think I am. It's an important diagnostic for your other fix. We need to be able to tell the difference between a wraparound and other weird situations. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support