Re: Increasing statistics results in worse estimates - Mailing list pgsql-general

From Tom Lane
Subject Re: Increasing statistics results in worse estimates
Date
Msg-id 5540.1114783457@sss.pgh.pa.us
Whole thread Raw
In response to Increasing statistics results in worse estimates  (Shelby Cain <alyandon@yahoo.com>)
List pgsql-general
Shelby Cain <alyandon@yahoo.com> writes:
> Increasing the statistics target on the city column
> and re-analyzing the table seems to make the
> correlation estimate better (shows about 0.5) but the
> row count estimates are thrown off by 2 orders of
> magnitude in some cases.

What did you increase it to, exactly?  Could we see the contents of
pg_stats for these two columns at both target settings?

            regards, tom lane

pgsql-general by date:

Previous
From: fisher@wckp.lodz.pl (fisher)
Date:
Subject: temp tables ORACLE/PGSQL
Next
From: Michael Fuhr
Date:
Subject: Re: Problem: message type 0xxx arrived from server while idle