From: Greg Stark <gsstark@mit.edu>
To: Mary Edie Meredith <maryedie@osdl.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: osdldbt-general <osdldbt-general@lists.sourceforge.net>
Subject: Re: [GENERAL] how to get accurate values in pg_statistic
Date: 07 Sep 2003 19:18:01 -0400
Message-ID: <87fzj86vdi.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <1062783865.6854.4780.camel@ibm-e.pdx.osdl.net>
References: <1062697270.6854.3475.camel@ibm-e.pdx.osdl.net>
<11537.1062717375@sss.pgh.pa.us>
<1062783865.6854.4780.camel@ibm-e.pdx.osdl.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: gsstark@mit.edu, maryedie@osdl.org, tgl@sss.pgh.pa.us, osdldbt-general@lists.sourceforge.net
Subject: Re: [GENERAL] how to get accurate values in pg_statistic
In-Reply-To: <87fzj86vdi.fsf@stark.dyndns.tv>
References: <1062697270.6854.3475.camel@ibm-e.pdx.osdl.net> <11537.1062717375@sss.pgh.pa.us> <1062783865.6854.4780.camel@ibm-e.pdx.osdl.net> <87fzj86vdi.fsf@stark.dyndns.tv>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox