pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Christian Paul B. Cosinas <cpc@cybees.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Temporary Table
Date: Mon, 7 Nov 2005 08:07:20 -0300
Message-ID: <20051107110719.GA7012@surnet.cl> (raw)
In-Reply-To: <004101c5e3b0$ee534130$1e21100a@ghwk02002147>
References: <004101c5e3b0$ee534130$1e21100a@ghwk02002147>

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



view thread (17+ messages)  latest in thread

Message-ID: <20051107110719.GA7012@surnet.cl>
Permalink:  ../20051107110719.GA7012@surnet.cl/
Also on:    postgresql.org/message-id/20051107110719.GA7012@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, cpc@cybees.com
  Subject: Re: Temporary Table
  In-Reply-To: <20051107110719.GA7012@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox