Checking query results against selectivity estimate - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Checking query results against selectivity estimate
Date
Msg-id Pine.LNX.4.30.0107051931270.677-100000@peter.localdomain
Whole thread Raw
Responses Re: Checking query results against selectivity estimate
List pgsql-hackers
I don't recall, has it ever been considered to compare the number of
actual result rows against the estimate computed by the optimizer and then
draw some conclusions from it?  Both numbers should be easily available.
Possible "conclusions" might be suggesting running analyze, suggesting
tweaking "M" and "K", assigning an out-of-whack factor to the statistics
(once it goes to infinity (or zero) you do one of the previous things), in
some future life possibly automatically switching to an alternative
statistics model.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: Pg on SMP half-powered
Next
From: Tom Lane
Date:
Subject: Re: Checking query results against selectivity estimate