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 809B08BAF7E for ; Sun, 20 Feb 2005 12:04:44 +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 43846-10 for ; Sun, 20 Feb 2005 12:04:37 +0000 (GMT) Received: from loncoche.terra.com.br (loncoche.terra.com.br [200.154.55.229]) by svr1.postgresql.org (Postfix) with ESMTP id F322D8BA137 for ; Sun, 20 Feb 2005 12:04:39 +0000 (GMT) Received: from estero.terra.com.br (estero.terra.com.br [200.154.55.138]) by loncoche.terra.com.br (Postfix) with ESMTP id 44E4DE782DB for ; Sun, 20 Feb 2005 09:04:38 -0300 (BRT) X-Terra-Karma: -2% X-Terra-Hash: 22db4386953b00805cc146e92cb4a954 Received: from rmsmnote (unknown [200.168.176.201]) (authenticated user rodrigo.miguel) by estero.terra.com.br (Postfix) with ESMTP id 960283C02B for ; Sun, 20 Feb 2005 09:04:37 -0300 (BRT) From: "Rodrigo Moreno" To: Subject: RES: RES: Degradation of postgres 7.4.5 on FreeBSD/CygWin Date: Sun, 20 Feb 2005 10:02:44 -0300 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.2910.0) Importance: Normal In-Reply-To: <42160140.20407@familyhealth.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.032 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200502/269 X-Sequence-Number: 10598 Hi all, I Got more improvements using vacuumdb utility and the size of my database was decreasead from 1.3gb to 900mb. Only one thing is not right yeat. My procedure perform others 7 subprocedures and with reimported database, it's took about 5 minutes to complete. With old vacuumed database, the same process took 20minutes, it's much better than the 4 hours before, but there is little diference. Now, i have scheduled the vacuumdb --analyze once a day and vacuumdb --analyze --all --full once a week, i think this is enough. Now i'll check for reindexes tables and i'll perform analyze in each query in procedure. When i get more results, i post here. Thanks a Lot Rodrigo Moreno