Re: More thoughts about planner's cost estimates - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: More thoughts about planner's cost estimates
Date
Msg-id 200606021515.44174.josh@agliodbs.com
Whole thread Raw
In response to Re: More thoughts about planner's cost estimates  (Greg Stark <gsstark@mit.edu>)
Responses Re: More thoughts about planner's cost estimates  ("Todd A. Cook" <tcook@blackducksoftware.com>)
Re: More thoughts about planner's cost estimates  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg, Tom,

> But for most users analyze doesn't really have to run as often as
> vacuum. One sequential scan per night doesn't seem like that big a deal
> to me.

Clearly you don't have any 0.5 TB databases.  

> > I'd still be worried about the CPU pain though.  ANALYZE can afford to
> > expend a pretty fair number of cycles per sampled tuple, but with a
> > whole-table sample that's going to add up.

Agreed.  Despite conventional wisdom, most PostgreSQL databases ... even 
those with high level OLTP or very large DW ... are CPU-bound.    We 
really don't want an ANALYZE which is an order-of-magnitude increase in 
CPU activity.

-- 
--Josh

Josh Berkus
PostgreSQL @ Sun
San Francisco


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: COPY (query) TO file
Next
From: "Todd A. Cook"
Date:
Subject: Re: More thoughts about planner's cost estimates