Обсуждение: Re: [GENERAL] how to get accurate values in pg_statistic

Поиск
Список
Период
Сортировка

Re: [GENERAL] how to get accurate values in pg_statistic

От
Mary Edie Meredith
Дата:
Yesterday Jenny and I started to look at plan changes with different
seed and default_statistics_sample changes.

Since we have 21 plans to check, it takes a long time to determine if
the plans were different.  We had to do it visually with xxdiff.  Diff
will always show a difference since the costs are almost always
different.

Is there any option to remove the cost numbers from the plan so we can
just use "diff" to automate the plan comparisons?  Otherwise it will be
very tedious to do this experiment.




On Sun, 2003-09-07 at 17:32, Tom Lane wrote:
> Greg Stark <gsstark@mit.edu> writes:
> > Perhaps the default of 10 is simply way
> > too small and should be raised?
>
> I've suspected since the default existed that it might be too small ;-).
> No one's yet done any experiments to try to establish a better default,
> though.  I suppose the first hurdle is to find a representative dataset.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Mary Edie Meredith <maryedie@osdl.org>
Open Source Development Lab


Re: [GENERAL] how to get accurate values in pg_statistic

От
Tom Lane
Дата:
Mary Edie Meredith <maryedie@osdl.org> writes:
> Is there any option to remove the cost numbers from the plan so we can
> just use "diff" to automate the plan comparisons?

No, but a few moments with sed or perl should get the job done for you.

            regards, tom lane