Re: Odd statistics behaviour in 7.2

From: "Gordon A(dot) Runkle" <gar(at)integrated-dynamics(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Odd statistics behaviour in 7.2
Date: 2002-02-16 06:16:32
Message-ID: 1013840193.21153.213.camel@spiff.runkleinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 2002-02-15 at 19:09, Tom Lane wrote:
> "Gordon A. Runkle" <gar(at)integrated-dynamics(dot)com> writes:
> > [ tale of poor statistical results in a near-unique column ]
> [ new algorithm and patch ]

Hi Tom,

This works much better (I did SET STATISTICS back to 10). Not always
'-1', but almost always negative.

Is "-0.503824" the same as "503824 with a predicted increase in the
number of distinct values" (as opposed to using "-503824")?

I checked a couple of other tables for which my field is a bit less
nearly-unique, and they have better stats now also. I've attached a
file with distributions and stats, if you're interested.

And, getting to where the rubber meets the road, my queries are running
well again!

I'm running a batch of other queries (which were unaffected by this
problem) overnight to see if they still work well.

Are you planning to include this patch in v7.2.1, or would it require
too much testing by others?

Thanks for all your hard work, it is greatly appreciated,

Gordon.
--
"Far and away the best prize that life has to offer
is the chance to work hard at work worth doing."
-- Theodore Roosevelt

Attachment Content-Type Size
my_7.2a.txt text/plain 2.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Per Erik Ronne 2002-02-16 06:49:04 Re: pgbash-2.4 released
Previous Message Lamar Owen 2002-02-16 05:36:45 Re: Maintaining the list of release changes