X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9303CDAEAE for ; Tue, 25 Oct 2005 23:11:38 -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 48995-02 for ; Wed, 26 Oct 2005 02:11:33 +0000 (GMT) Received: from mailer.eglobalreach.net (gc4-mx.gc4.com [202.124.128.22]) by svr1.postgresql.org (Postfix) with ESMTP id 031D1DAECD for ; Tue, 25 Oct 2005 23:11:34 -0300 (ADT) Received: from ghwk02002147 (localhost [127.0.0.1] (may be forged)) by mailer.eglobalreach.net (8.11.6p2/) with ESMTP id j9Q2BPx23751; Wed, 26 Oct 2005 10:11:25 +0800 From: "Christian Paul B. Cosinas" To: Cc: "'Alvaro Nunes Melo'" Subject: Re: Temporary Table Date: Wed, 26 Oct 2005 02:15:37 -0000 Message-ID: <004a01c5d9d3$28199820$1e21100a@ghwk02002147> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 thread-index: AcXZUvDG9UlwHeZWTqupmuaYzCrPXwAf4BSQ In-Reply-To: <435E0F9B.3050101@atua.com.br> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.679 required=5 tests=[AWL=0.000, FORGED_RCVD_HELO=0.05, URIBL_SBL=0.629] X-Spam-Level: X-Archive-Number: 200510/377 X-Sequence-Number: 15145 I am creating a temporary table in every function that I execute. Which I think is bout 100,000 temporary tables a day. What is the command for vacuuming these 3 tables? Also I read about the auto vacuum of postgresql. How can I execute this auto vacuum or the settings in the configuration? -----Original Message----- From: Alvaro Nunes Melo [mailto:al_nunes@atua.com.br] Sent: Tuesday, October 25, 2005 10:58 AM To: Christian Paul B. Cosinas Subject: Re: [PERFORM] Temporary Table Hi Christian, Christian Paul B. Cosinas wrote: > Does Creating Temporary table in a function and NOT dropping them > affects the performance of the database? > I believe it will depend on how many temporary tables you will create in a daily basis. We had a performance problem caused by them, and by not monitoring properly the database size. The pg_attribite, pg_class and pg_depend tables grow a lot. When I found out that this was the problem I saw some messages in the list archieve, and now the overall performance is great. What I do is daily run VACUUM FULL and REINDEX in this three tables. Alvaro I choose Polesoft Lockspam to fight spam, and you? http://www.polesoft.com/refer.html