From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael L. Hostbaek <mich@the-lab.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Performance issue
Date: Sat, 01 May 2004 00:37:48 -0400
Message-ID: <10459.1083386268@sss.pgh.pa.us> (raw)
In-Reply-To: <20040427091252.GA93126@mich2.itxmarket.com>
References: <20040427091252.GA93126@mich2.itxmarket.com>
"Michael L. Hostbaek" <mich@the-lab.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
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mich@the-lab.org
Subject: Re: Performance issue
In-Reply-To: <10459.1083386268@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