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

From: Mary Edie Meredith <maryedie(at)osdl(dot)org>
To: pgsql-performance <pgsql-performance(at)postgresql(dot)org>, osdldbt-general <osdldbt-general(at)lists(dot)sourceforge(dot)net>
Subject: Re: [GENERAL] how to get accurate values in pg_statistic
Date: 2003-09-17 00:21:04
Message-ID: 1063758041.5730.549.camel@ibm-e.pdx.osdl.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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(at)mit(dot)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(at)osdl(dot)org>
Open Source Development Lab

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-09-17 04:58:17 Re: [GENERAL] how to get accurate values in pg_statistic
Previous Message Jeff 2003-09-16 15:38:12 Re: Inconsistent performance