Re: best statistic target for boolean columns

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: best statistic target for boolean columns
Дата
Msg-id 41587AF5.3060904@bigfoot.com
обсуждение исходный текст
Ответ на Re: best statistic target for boolean columns  (Josh Berkus <josh@agliodbs.com>)
Список 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-----


В списке pgsql-performance по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Caching of Queries
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Caching of Queries