| От | Tom Lane |
|---|---|
| Тема | Re: Planner Row Estimate with Function |
| Дата | |
| Msg-id | 12115.1262119386@sss.pgh.pa.us обсуждение |
| Ответ на | Planner Row Estimate with Function (Michael Fork <mfork00@yahoo.com>) |
| Ответы |
Re: Planner Row Estimate with Function
|
| Список | pgsql-general |
Michael Fork <mfork00@yahoo.com> writes:
> I have an index scan on a custom function that is returning a wildly incorrect row estimate that is throwing off the
restof the query planning. The result of the function is roughly unique - there are a handful with multiple entries -
butthe planner is estimating 227,745 rows. I re-ran ANALYZE on the table and the results did not change. Any
suggestionson how to get more accurate planner result?
What PG version is this exactly?
Also, what happened to the type='CREDIT' condition in your query? Is
that a partial index?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера