X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DD595D1B1D0 for ; Fri, 4 Jun 2004 15:50:34 -0300 (ADT) 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 60300-08 for ; Fri, 4 Jun 2004 18:50:33 +0000 (GMT) Received: from tupari.net (node-40242ac2.lga.onnet.us.uu.net [64.36.42.194]) by svr1.postgresql.org (Postfix) with ESMTP id F30E8D1B1DF for ; Fri, 4 Jun 2004 15:50:29 -0300 (ADT) Received: from [192.168.0.2] ([192.168.0.2]) by tupari.net (8.12.8/8.12.8) with ESMTP id i54IoTkx006075; Fri, 4 Jun 2004 14:50:29 -0400 Message-ID: <40C0C475.8070609@selectacast.net> Date: Fri, 04 Jun 2004 14:50:29 -0400 From: Joseph Shraibman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a1) Gecko/20040520 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Stark Cc: pgsql-general@postgresql.org Subject: Re: VACUUM Question References: <40345D0D.9060103@meerkatsoft.com> <87smdb1k0d.fsf@stark.xeocode.com> In-Reply-To: <87smdb1k0d.fsf@stark.xeocode.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/188 X-Sequence-Number: 61571 Greg Stark wrote: > Alex writes: > > There won't be anything to VACUUM after the insert, but perhaps you still want > to run ANALYZE. Note that a plain ANALYZE uses a statistical sample which is > much faster, whereas VACUUM ANALYZE has to look at every record anyways so > it's slower but produces more accurate statistics. If you don't have That is not true. My nightly vacuum analyze clearly is sampling: INFO: "tablename": 22102 pages, 30000 rows sampled, 1712934 estimated total rows