From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Paulusberger <alexp@meta-bit.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Performance Problems
Date: Fri, 23 Aug 2002 09:49:45 -0400
Message-ID: <19614.1030110585@sss.pgh.pa.us> (raw)
In-Reply-To: <3D663946.4050008@meta-bit.com>
References: <3D663946.4050008@meta-bit.com>
Another thought...
Alex Paulusberger <alexp@meta-bit.com> writes:
> The whole process loops 4,500 times.
> For every loop
> - a temp table is cleared
How exactly are you clearing the temp table? DELETE FROM isn't a good
plan because you'll still have dead tuples in there. You could do a
DELETE FROM and then VACUUM, but I'd suggest TRUNCATE instead.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, alexp@meta-bit.com
Subject: Re: Performance Problems
In-Reply-To: <19614.1030110585@sss.pgh.pa.us>
References: <3D663946.4050008@meta-bit.com> <19614.1030110585@sss.pgh.pa.us>
* 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