Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 739986325AB for ; Mon, 4 Jan 2010 18:06:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 87340-08 for ; Mon, 4 Jan 2010 22:06:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f204.google.com (mail-yw0-f204.google.com [209.85.211.204]) by mail.postgresql.org (Postfix) with ESMTP id EF0D46322B5 for ; Mon, 4 Jan 2010 18:06:35 -0400 (AST) Received: by ywh42 with SMTP id 42so13009351ywh.28 for ; Mon, 04 Jan 2010 14:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5RQo7NAhKHY+aWMJdkibIY+lsZRZuLWR/t7Zm9g6fds=; b=KVPtLXW7R/+9ioqFX6ECTjGLvdjIJx+ULVrCnT7Xo5LOSiep11GNZFUxNQLGzY1Hpw 8bmPn//ZY7ASKDvaeRMxnd1h1FtoPApOWLW8XfM++9WQnlyekRVYn/8jveiZREwi7Y4R Qm7kUne9Q8sbTiURxvo7QrXpc8TaoQ1Hgh6KY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u/TJkrlJuFeM/eoyVExQo6stP7fkVj7bXW28K5QfvZCeOoYBTQkuJowuLF1Q4A9z+0 YEXzbdaolRj+QbQAvoyYSC+sRrO7/rPxsYwQQJTz/6U1GaHfmCBX1oQYL8TwFalOlUHE e4q7SaHis+i8O8gammlbiwoeZlHR4ky2tFeEc= MIME-Version: 1.0 Received: by 10.91.11.6 with SMTP id o6mr5407373agi.49.1262642794393; Mon, 04 Jan 2010 14:06:34 -0800 (PST) In-Reply-To: <4B426438.40109@alteeve.com> References: <4B423D22.7040803@alteeve.com> <4B424215.70605@pinpointresearch.com> <4B424FF6.40207@alteeve.com> <4B425222.7070905@gpdnet.co.uk> <4B425555.6020709@alteeve.com> <1262638856.29852.4.camel@bnicholson-desktop> <4B425E93.1050207@alteeve.com> <4B426359.9040601@pinpointresearch.com> <4B426438.40109@alteeve.com> Date: Mon, 4 Jan 2010 15:06:34 -0700 Message-ID: <37d451f71001041406i3f5d8d5fte8a29cfbc06998c9@mail.gmail.com> Subject: Re: DB is slow until DB is reloaded From: Rosser Schwarz To: Madison Kelly Cc: Steve Crawford , Brad Nicholson , Gary Doades , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.189 tagged_above=-10 required=5 tests=BAYES_50=0.001, FH_DATE_PAST_20XX=3.188 X-Spam-Level: *** X-Archive-Number: 201001/25 X-Sequence-Number: 36905 On Mon, Jan 4, 2010 at 2:57 PM, Madison Kelly wrote: > As for autovacuum, I assumed (yes, I know) that all v8.x releases enabled it > by default. How would I confirm that it's running or not? I believe it's not enabled by default in 8.1-land, and is as of 8.2 and later. Whether it's running or not, try "SELECT * FROM pg_autovacuum;". If that returns the null set, it's not doing anything, as it hasn't been told it has anything to do. IME, however, if you really want to benefit from the autovacuum daemon, you probably do want to be on something more recent than 8.1. (And, yes, this is a bit of the pot calling the kettle black: I have a mixed set of 8.1 and 8.3 hosts. Autovacuum is only running on the latter, while the former are queued for an upgrade.) rls -- :wq