Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 17A6F65013E for ; Fri, 17 Oct 2008 14:48:12 -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 35234-04 for ; Fri, 17 Oct 2008 14:48:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by postgresql.org (Postfix) with ESMTP id 5D26564FC71 for ; Fri, 17 Oct 2008 14:48:08 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id j4so387139wah.19 for ; Fri, 17 Oct 2008 10:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=h1js1KtFZw/vorGOoMYpASayFjEZEGTAl2RsXkdkgCM=; b=B7i8BcaYWlouUPegS0ahDU5It+Dg/9qRBMkEOhyJP2QRmewrNWOvhfch3PKrEiWLn4 8W1YJgjRDE2ElkRR+1gtkuLwikE9aqecIBl1kemmmEQkIp3l3652Qf6F3AFGtU+Aa/ez SidtIZhXU+p3J2+yII4e9bwhasesw8iAGLbZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Amyuao0TjOmXEYulHmUMedx23IxnuDA2xMqbar+mlsu6peWn/KjicxwEoPMDdv9qDh wUic2a8AuHe2qZlb4ouZfxaz3UmJYXCado/BcmboTmiErkLWDUa5poO2EHlIFVExddr4 RNlsilT4XPujSoOmvX0G2F8AV1/H+hV8wNC74= Received: by 10.115.76.5 with SMTP id d5mr3537345wal.224.1224265687194; Fri, 17 Oct 2008 10:48:07 -0700 (PDT) Received: by 10.114.127.18 with HTTP; Fri, 17 Oct 2008 10:48:07 -0700 (PDT) Message-ID: <8a547c840810171048y27f1447ci2f125f19f1e0c5e@mail.gmail.com> Date: Fri, 17 Oct 2008 10:48:07 -0700 From: "Tory M Blue" To: "Kevin Grittner" Subject: Re: Index bloat, reindex weekly, suggestions etc? Cc: pgsql-performance@postgresql.org In-Reply-To: <48F88694.EE98.0025.0@wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8a547c840810170905m7323dbd8x90de7dd004abc7d4@mail.gmail.com> <48F8773F.EE98.0025.0@wicourts.gov> <8a547c840810170947p52075b0cmadc8c2060b38cfa4@mail.gmail.com> <48F88694.EE98.0025.0@wicourts.gov> 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: 200810/96 X-Sequence-Number: 31677 On Fri, Oct 17, 2008 at 10:35 AM, Kevin Grittner wrote: > As already pointed out, that's a lot of free space. You don't use > VACUUM FULL on this database, do you? That would keep the data > relatively tight but seriously bloat indexes, which is consistent with > your symptoms. VACUUM FULL should not be used routinely, it is > basically for recovery from serious heap bloat when you don't have > space for another copy of the data, and it should usually be followed > by a REINDEX to clean up the index bloat it causes. Interesting, I do run: "# vacuum and analyze each db before dumping psql $DB -c 'vacuum analyze verbose'"" every night before I dump, is that causing some issues that I'm not aware of? Tory