From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Browne <cbbrowne@libertyrms.info>
Cc: pgsql-performance@postgresql.org
Subject: Re: [GENERAL] how to get accurate values in pg_statistic (continued)
Date: Thu, 11 Sep 2003 00:30:59 -0400
Message-ID: <21962.1063254659@sss.pgh.pa.us> (raw)
In-Reply-To: <60znhcxp0z.fsf@dev6.int.libertyrms.info>
References: <11537.1062717375@sss.pgh.pa.us>
<200309101944.h8AJiod26547@candle.pha.pa.us>
<60znhcxp0z.fsf@dev6.int.libertyrms.info>
Christopher Browne <cbbrowne@libertyrms.info> writes:
> The "right answer" for most use seems likely to involve:
> a) Getting an appropriate number of bins (I suspect 10 is a bit
> small, but I can't justify that mathematically), and
I suspect that also, but I don't have real evidence for it either.
We've heard complaints from a number of people for whom it was indeed
too small ... but that doesn't prove it's not appropriate in the
majority of cases ...
> Does the sample size change if you increase the number of bins?
Yes, read the comments in backend/commands/analyze.c.
> Do we also need a parameter to control sample size?
Not if the paper I read before writing that code is correct.
regards, tom lane
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: tgl@sss.pgh.pa.us, cbbrowne@libertyrms.info
Subject: Re: [GENERAL] how to get accurate values in pg_statistic (continued)
In-Reply-To: <21962.1063254659@sss.pgh.pa.us>
References: <11537.1062717375@sss.pgh.pa.us> <200309101944.h8AJiod26547@candle.pha.pa.us> <60znhcxp0z.fsf@dev6.int.libertyrms.info> <21962.1063254659@sss.pgh.pa.us>
* 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