From: | Gaetano Mendola <mendola(at)bigfoot(dot)com> |
---|---|
To: | josh(at)agliodbs(dot)com |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: best statistic target for boolean columns |
Date: | 2004-09-27 20:41:25 |
Message-ID: | 41587AF5.3060904@bigfoot.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Josh Berkus wrote:
| Gaetano,
|
|
|>don't you think the best statistic target for a boolean
|>column is something like 2? Or in general the is useless
|>have a statistics target > data type cardinality ?
|
|
| It depends, really, on the proportionality of the boolean values; if they're
| about equal, I certainly wouldn't raise Stats from the default of 10. If,
| however, it's very dispraportionate -- like 2% true and 98% false -- then it
| may pay to have better statistics so that the planner doesn't assume 50%
| hits, which it otherwise might.
So, I didn't understand how the statistics hystogram works.
I'm going to take a look at analyze.c
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBWHr07UpzwH2SGd4RAi8nAJoDOa7j+5IjDEcqBvB4ATXRzRPB+wCfWZ0p
OCmUew9zlyqVkxB9iWKoGAw=
=7lkZ
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Atkins | 2004-09-27 20:53:45 | Re: Caching of Queries |
Previous Message | Rod Taylor | 2004-09-27 20:37:34 | Re: Caching of Queries |