Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 9E84C9FBF22 for ; Thu, 21 Jun 2007 15:34:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 54730-01-5 for ; Thu, 21 Jun 2007 15:34:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by postgresql.org (Postfix) with ESMTP id 6119C9FC08C for ; Thu, 21 Jun 2007 15:34:27 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id u2so708823uge for ; Thu, 21 Jun 2007 11:34:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=DO3N7pidRpJx4DTRLlbvjsssKLF3KigM4aI59z1OjSEh5z4lc0i9lDtpO5kumNbFOMl8KbM+BeRjWXSYSYLUDfJfUYjuv1p2jMD7uqHxXwwszqU13vwQLcLSXFZoi2ebhh8wo6E7svKLfrbSBaMayHb0TknrOxpRX9vat1tb9CQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=demcLn4mAWrP4HPU8Be+TrWqGwo5FPeXwNCCxXuULakn2Zd+R1rEyzFuL/hCm335KqrZpWMeC9jwFAiXBa3EgbyzCPqR++NHMxNhkLoi5DzlufrDCEYGZlDwP+5Gb2SEuOO3Uz2kfnO63tjpfwwFv4cP8MSZOTDfb4QBomHk9D4= Received: by 10.67.30.6 with SMTP id h6mr2217002ugj.1182450866109; Thu, 21 Jun 2007 11:34:26 -0700 (PDT) Received: from ?192.168.1.33? ( [81.107.198.252]) by mx.google.com with ESMTP id h1sm2202999ugf.2007.06.21.11.34.22 (version=SSLv3 cipher=RC4-MD5); Thu, 21 Jun 2007 11:34:23 -0700 (PDT) Message-ID: <467AC48B.2050803@enterprisedb.com> Date: Thu, 21 Jun 2007 19:33:47 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Steven Flatt CC: pgsql-performance@postgresql.org Subject: Re: Database-wide VACUUM ANALYZE References: <357fa7590706211009w2ef6071fn83c5759db6be1e80@mail.gmail.com> In-Reply-To: <357fa7590706211009w2ef6071fn83c5759db6be1e80@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/481 X-Sequence-Number: 25514 Steven Flatt wrote: > The bad thing, which I don't totally understand from reading the docs, is > that another db-wide vacuum kicked off exactly 24 hours after the first > db-wide vacuum kicked off, before the first one had finished. (Note that > these vacuums seem to go through the tables alphabetically.) I managed to > explain this to myself in that there were still rows in tables not yet > touched by the first db-wide vacuum that could have XIDs older than > autovacuum_freeze_max_age. Fine, so two db-wide vacuums were now taking > place, one behind the other. Are you sure there's no cron job starting the vacuums? 24h sounds too good to be a coincidence, and there's no magic constant of 24h in the autovacuum code. Besides, autovacuum can only be running one VACUUM at a time, so there must be something else launching them. What's your vacuuming strategy in general, before and after upgrade? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com