Re: Performance issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael L(dot) Hostbaek" <mich(at)the-lab(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Performance issue
Date: 2004-05-01 04:37:48
Message-ID: 10459.1083386268@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Michael L. Hostbaek" <mich(at)the-lab(dot)org> writes:
> I cron script is being run every night (while very low db activity),
> that deletes all rows from the table, and injects a bunch of new data...

You should vacuum in between ... or even better, do the deletion with
TRUNCATE.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Muhyiddin A.M Hayat 2004-05-01 13:30:53 Rank
Previous Message Sebastian Tewes 2004-04-30 22:44:40 invalid input syntax for integer: ""