| От | Tom Lane |
|---|---|
| Тема | Re: Slow query - possible bug? |
| Дата | |
| Msg-id | 20329.1144942010@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Slow query - possible bug? (Gavin Hamill <gdh@laterooms.com>) |
| Ответы |
Re: Slow query - possible bug?
|
| Список | pgsql-performance |
Gavin Hamill <gdh@laterooms.com> writes:
> If I replace the
> (allocation0_."Date" between '2006-06-09 00:00:00.000000' and
> '2006-06-09 00:00:00.000000')
> with
> allocation0_."Date" ='2006-04-09 00:00:00.000000'
> then the query comes back in a few milliseconds (as I'd expect :)
Could we see EXPLAIN ANALYZE for
* both forms of the date condition, with the roomid condition;
* both forms of the date condition, WITHOUT the roomid condition;
* just the roomid condition
I'm thinking the planner is misestimating something, but it's hard
to tell what without breaking it down.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера