Re: [GENERAL] how to get accurate values in pg_statistic - Mailing list pgsql-performance

From Greg Stark
Subject Re: [GENERAL] how to get accurate values in pg_statistic
Date
Msg-id 87fzj86vdi.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: [GENERAL] how to get accurate values in pg_statistic  (Mary Edie Meredith <maryedie@osdl.org>)
Responses Re: [GENERAL] how to get accurate values in pg_statistic  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Mary Edie Meredith <maryedie@osdl.org> writes:

> We ran additional tests with default_statistics_target set to 1000 (the
> max I believe).  The plans are the same over the different runs, but the
> pg_statistics table has different cost values.  The performance results
> of the runs are consistent (we would expect this with the same plans).
> The resulting performance metrics are similar to the best plans we see
> using the default histogram size (good news).

Hm, would it be possible to do a binary search and find the target at which
you start getting consistent plans? Perhaps the default of 10 is simply way
too small and should be raised?

Obviously this would depend on the data model, but I suspect if your aim is
for the benchmark data to be representative of typical data models, which
scares me into thinking perhaps users are seeing similarly unpredictably
variable performance.

--
greg

pgsql-performance by date:

Previous
From: Pailloncy Jean-Gérard
Date:
Subject: slow plan for min/max
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] how to get accurate values in pg_statistic