| От | Jeff Amiel |
|---|---|
| Тема | Re: The planner hates me. |
| Дата | |
| Msg-id | C17A452040EDB84AA7A10AEA334E3E1455D1CF@AD1 обсуждение |
| Ответ на | The planner hates me. ("Jeff Amiel" <JAmiel@istreamimaging.com>) |
| Список | pgsql-general |
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
The Right Way (tm) to do this would be something like
create temp table dates as select * from get_dates(...);
analyze dates;
... original select, but join against temp table ...
which would leave the planner armed with some stats about the range
of dates of interest.
------------
I actually tried that but minus the analyze..... :(
Btw, congrats on whomever contributed to the bitmap scans (v8.1 I
believe)....the ability to use multiple indexes for a single table in
the same query is fantastic!!
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера