| От | Tom Lane |
|---|---|
| Тема | Re: indices usage |
| Дата | |
| Msg-id | 8576.1008862026@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | indices usage (Dmitry Panov <dmitry@tsu.tula.ru>) |
| Ответы |
Re: indices usage
|
| Список | pgsql-general |
Dmitry Panov <dmitry@tsu.tula.ru> writes:
> isp_leased=# explain select count(*) from traffic_stat where timestamp between timestamp('2001-12-18') and
timestamp('2001-12-19');
> The question is why it doesn't make use of traffic_stat_idx2?
Try '2001-12-19'::timestamp, instead, or use CAST if you want to conform
to the standard. The function syntax is not considered a constant for
reasons I won't delve into here.
> I think cost estimation is wrong in this case.
Could easy be. Do you want to try it with 7.2 beta?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера