From: Luiz K. Matsumura <luiz@planit.com.br>
To: pgsql-performance@postgresql.org
Subject: Optimizing queries that use temporary tables
Date: Tue, 22 Jan 2008 17:32:17 -0200
Message-ID: <479644C1.4070703@planit.com.br> (raw)
Hello,
I'm developing some routines that will use temporary tables and need
advice on how to not lose performance.
I will insert data in a temporary table and use this data to generate
new sets that will update or add to the same temporary table.
I have some questions that I'm concerned about:
- I can create indexes on this temp table to optimize queries ?
If yes...
- This indexes will be destroyed together (automatic?) the temp table
when the connection is closed ?
- When I insert a lot of new rows, need to run analyze on this temporary
table ?
Thanks in Advance.
--
Luiz K. Matsumura
Plan IT Tecnologia Informática Ltda.
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: luiz@planit.com.br
Subject: Re: Optimizing queries that use temporary tables
In-Reply-To: <479644C1.4070703@planit.com.br>
* 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