pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Paul B. Cosinas <cpc@cybees.com>
To: pgsql-performance@postgresql.org
Cc: 'Alvaro Nunes Melo' <al_nunes@atua.com.br>
Subject: Re: Temporary Table
Date: Wed, 26 Oct 2005 02:15:37 -0000
Message-ID: <004a01c5d9d3$28199820$1e21100a@ghwk02002147> (raw)
In-Reply-To: <435E0F9B.3050101@atua.com.br>

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    




view thread (17+ messages)  latest in thread

Message-ID: <004a01c5d9d3$28199820$1e21100a@ghwk02002147>
Permalink:  ../004a01c5d9d3$28199820$1e21100a@ghwk02002147/
Also on:    postgresql.org/message-id/004a01c5d9d3$28199820$1e21100a@ghwk02002147

 · 

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: cpc@cybees.com, al_nunes@atua.com.br
  Subject: Re: Temporary Table
  In-Reply-To: <004a01c5d9d3$28199820$1e21100a@ghwk02002147>

* 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