Tom Lane wrote:
>
> Gavin Sherry <swm@linuxworld.com.au> writes:
> > On Wed, 3 Apr 2002, Christopher Kings-Lynne wrote:
> >> Would it be an idea to have pg_dump append an ANALYZE; command to the end of
> >> its dumps to assist newbies / inexperienced admins?
>
> > I do not think this is desired behaviour.
>
> I agree with Gavin here ... a forced VACUUM or ANALYZE after a restore
> will just get in the way of people who know what they're doing, and it's
> not at all clear that it will help people who do not.
Sorry Tom and Gavin, but I feel it really comes down to our idea of what
we're
trying to do here :
a) A database which is very self-maintaining, so people DON'T HAVE to learn it's intricacies in order to be getting
decentperformance. (They'll have to learn the intricacies if they want *better*
performance)
b) A database which works. But if you want decent performance, you'd
better take the time and effort to learn it. (This is the approach the commercial vendors take)
I feel we should always target a) where it's possible to without it
seriously
getting in the way of people who've take the time to learn the skills.
The far majority of people who use PostgreSQL are in the category which
will
benefit from a) so they can put their time to other uses instead of
having to
learn and keep-up-to-date-with PostgreSQL. This will *always* be the
case.
Having decent performance by default should definitely be an important
objective, so having an ANALYZE command run at the end of a restore - by
default only - is a good idea.
Regards and best wishes,
Justin Clift
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there." - Indira Gandhi