| От | Tom Lane |
|---|---|
| Тема | Re: Performance on inserts |
| Дата | |
| Msg-id | 5905.971649054@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Performance on inserts (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Performance on inserts
|
| Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> What I am more concerned about is a join that uses the most common
> value. We do an index scan in that case.
No, we do whichever plan looks cheapest. Again, it's all about
statistics.
Right now, eqjoinsel() is just a stub that returns a constant
selectivity estimate. It might be useful to compute some more
sophisticated value based on pg_statistic entries for the two
columns, but right now I doubt you could tell much. Should keep
the join case in mind when we extend the statistics...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера