X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 49A733A5811 for ; Thu, 2 Dec 2004 16:33:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06344-08 for ; Thu, 2 Dec 2004 16:32:52 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id AB97B3A57FC for ; Thu, 2 Dec 2004 16:31:24 +0000 (GMT) Received: from [2001:700:300:dc03:20e:cff:fe36:a766] (helo=trofast.sesse.net) by cassarossa.samfundet.no with esmtp (Exim 4.34) id 1CZtr9-0005AN-FG for pgsql-performance@postgresql.org; Thu, 02 Dec 2004 17:31:23 +0100 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1CZtqu-0007wh-00 for ; Thu, 02 Dec 2004 17:30:44 +0100 Date: Thu, 2 Dec 2004 17:30:44 +0100 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: VACUUM ANALYZE downgrades performance Message-ID: <20041202163044.GA30522@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <84fz2ra2gy.fsf_-_@plab.ku.dk> <41AC94CC.1020602@idigx.com> <84wtw0d6q2.fsf@plab.ku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84wtw0d6q2.fsf@plab.ku.dk> X-Operating-System: Linux 2.6.8.1 on a i686 User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/51 X-Sequence-Number: 9426 On Thu, Dec 02, 2004 at 05:07:17PM +0100, Dmitry Karasik wrote: > While I agree that generally this is true, look how stupid this > behavior looks in this particular case: A developer creates a table > and index, knowing that the table will be large and will be intensively > used. An admin runs 'VACUUM ANALYZE' when table is occasionally empty, > and next, say, 1 day, until another 'VACUUM ANALYZE' starts, the index > is simply not used! Sure you don't suppose to run 'VACUUM ANALYZE' every > 5 minutes as a solution, right? No, you run autovacuum, which automatically re-analyzes at approximately the right time. /* Steinar */ -- Homepage: http://www.sesse.net/