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 B3EAED6807 for ; Mon, 7 Nov 2005 07:07:22 -0400 (AST) 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 02662-08 for ; Mon, 7 Nov 2005 11:07:19 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by svr1.postgresql.org (Postfix) with ESMTP id 6F176D7C81 for ; Mon, 7 Nov 2005 07:07:19 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 07 Nov 2005 08:06:30 -0300 X-IronPort-AV: i="3.97,299,1125892800"; d="scan'208"; a="23875065:sNHT57897578" Received: from alvh.no-ip.org (216.155.78.23) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43501597002D8D7D; Mon, 7 Nov 2005 08:07:17 -0300 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 174F5C2D450; Mon, 7 Nov 2005 08:07:20 -0300 (CLST) Date: Mon, 7 Nov 2005 08:07:20 -0300 From: Alvaro Herrera To: "Christian Paul B. Cosinas" Cc: pgsql-performance@postgresql.org Subject: Re: Temporary Table Message-ID: <20051107110719.GA7012@surnet.cl> Mail-Followup-To: "Christian Paul B. Cosinas" , pgsql-performance@postgresql.org References: <004101c5e3b0$ee534130$1e21100a@ghwk02002147> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004101c5e3b0$ee534130$1e21100a@ghwk02002147> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.006 required=5 tests=[AWL=-0.240, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, RCVD_IN_NJABL_PROXY=0.327] X-Spam-Score: 2.006 X-Spam-Level: ** X-Archive-Number: 200511/118 X-Sequence-Number: 15375 Christian Paul B. Cosinas wrote: > Does Creating Temporary table in a function and NOT dropping them affects > the performance of the database? The system will drop it automatically, so it shouldn't affect. What _could_ be affecting you if you execute that function a lot, is accumulated bloat in pg_class, pg_attribute, or other system catalogs. You may want to make sure these are vacuumed often. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support