Re: ANALYZE after restore - Mailing list pgsql-hackers

From Justin Clift
Subject Re: ANALYZE after restore
Date
Msg-id 3CAABA4B.52BCD2F4@postgresql.org
Whole thread Raw
In response to Re: ANALYZE after restore  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: ANALYZE after restore  (Jan Wieck <janwieck@yahoo.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: [GENERAL] Re : Solaris Performance - Profiling (Solved)
Next
From: "Christopher Kings-Lynne"
Date:
Subject: command.c breakup