Re: A question about Vacuum analyze - Mailing list pgsql-general

From Tom Lane
Subject Re: A question about Vacuum analyze
Date
Msg-id 28501.1140104921@sss.pgh.pa.us
Whole thread Raw
In response to A question about Vacuum analyze  (Emi Lu <emilu@encs.concordia.ca>)
Responses Re: A question about Vacuum analyze
List pgsql-general
Emi Lu <emilu@encs.concordia.ca> writes:
> In another way, whenever we "delete/truncate and then insert" data into
> a table, it is better to "vacuum anaylze"?

You shouldn't need a VACUUM if you haven't yet done any updates or
deletes since the TRUNCATE.  An ANALYZE seems like a good idea, though.
(You could get away without ANALYZE if the new data has essentially the
same statistics as the old, but if you're making only minor changes, why
are you using this technique at all ...)

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why does an ON SELECT rule have to be named "_RETURN"?
Next
From: Robert Treat
Date:
Subject: Re: Why does an ON SELECT rule have to be named "_RETURN"?