Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect) |
| Дата | |
| Msg-id | 13608.933437592@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect) (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Ответы |
Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)
|
| Список | pgsql-hackers |
OK, I haven't heard any objections to my last proposal for improving
selectivity estimates for "=", so I'm going to bull ahead and implement it.
This will require adding columns to a system table, which I've never
done before. There are some attribute statistics in pg_attribute and
some in pg_statistic, but it looks like changing pg_attribute is a
pretty dangerous business, so I'm inclined to leave pg_attribute alone
and just add columns to pg_statistic.
Do I need to do anything beyond making the obvious additions to
catalog/pg_statistic.h, rebuild, and initdb? I see that pg_attribute.h
doesn't contain any handmade entries for pg_statistic, so that at least
is no problem...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера