| От | Tom Lane |
|---|---|
| Тема | Re: Strange behaviour |
| Дата | |
| Msg-id | 20305.1154623186@sss.pgh.pa.us обсуждение |
| Ответ на | Strange behaviour (Richard Rowell <richard@bowmansystems.com>) |
| Список | pgsql-performance |
Richard Rowell <richard@bowmansystems.com> writes: > We are using a BI tool that generates some rather ugly queries. One of > the ugly queries is taking much longer to return thin I think it > should. > (http://www.bowmansystems.com/~richard/full.analyze) > Can anyone shed any light on what is going on here? Seems like you have some bad rowcount estimates leading to poor plan selection. Most of the problem looks to be coming from the FunctionScan nodes, wherein the planner doesn't have any real way to estimate how many rows come out. You might look into whether you can replace those functions with views, so that the planner isn't dealing with "black boxes". regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера