X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 47083476182 for ; Wed, 30 Apr 2003 18:25:24 -0400 (EDT) Received: from torque.intervideoinc.com (mail.intervideo.com [206.112.112.151]) by postgresql.org (Postfix) with ESMTP id 69AB34760E3 for ; Wed, 30 Apr 2003 18:25:23 -0400 (EDT) Received: from ronpc [63.68.5.2] by torque.intervideoinc.com (SMTPD32-5.05) id A22C46460060; Wed, 30 Apr 2003 15:46:04 -0700 From: "Ron Mayer" To: , "Achilleus Mantzios" Cc: Subject: Re: [SQL] 7.3 analyze & vacuum analyze problem Date: Wed, 30 Apr 2003 15:16:58 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <200304301148.18322.josh@agliodbs.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Spam-Status: No, hits=-14.3 required=5.0 tests=BAYES_10,IN_REP_TO,MSGID_GOOD_EXCHANGE,SMTPD_IN_RCVD autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/271 X-Sequence-Number: 1777 Josh wrote... > Achilleus, > > > I am afraid it is not so simple. > > What i (unsuccessfully) implied is that > > dynacom=# VACUUM ANALYZE status ; > > VACUUM > > dynacom=# ANALYZE status ; > > ANALYZE > > dynacom=# > > > > [is enuf to damage the performance.] > > You're right, that is mysterious. If you don't get a response from one of > the major developers on this forum, I suggest that you post those EXPLAIN > results to PGSQL-BUGS. I had the same problem a while back. http://archives.postgresql.org/pgsql-bugs/2002-08/msg00015.php http://archives.postgresql.org/pgsql-bugs/2002-08/msg00018.php http://archives.postgresql.org/pgsql-bugs/2002-08/msg00018.php Short summary: Later in the thread Tom explained my problem as free space not being evenly distributed across the table so ANALYZE's sampling gave skewed results. In my case, "pgstatuple" was a good tool for diagnosing the problem, "vacuum full" fixed my table and a much larger fsm_* would have probably prevented it.