Re: Performance Problems - Mailing list pgsql-admin

From Tom Lane
Subject Re: Performance Problems
Date
Msg-id 19614.1030110585@sss.pgh.pa.us
Whole thread Raw
In response to Performance Problems  (Alex Paulusberger <alexp@meta-bit.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Performance Problems
Next
From: Joe Conway
Date:
Subject: Re: Preserving datatypes in dblink.