Re: Random Page Cost and Planner

Поиск
Список
Период
Сортировка
От David Jarvis
Тема Re: Random Page Cost and Planner
Дата
Msg-id AANLkTil7Hq5RIqAHVwXbpKkfdtZSKg_UsQeNgJuTGMdI@mail.gmail.com
обсуждение исходный текст
Ответ на Random Page Cost and Planner  (David Jarvis <thangalin@gmail.com>)
Список pgsql-performance
Hi,

I changed the date comparison to be based on year alone:

    extract(YEAR FROM sc.taken_start) >= 1900 AND
    extract(YEAR FROM sc.taken_end) <= 2009 AND

The indexes are now always used; if someone wants to explain why using the numbers works (a constant) but using a date (another constant?) does not work, I'd really appreciate it.

Thanks again, everybody, for your time and help.

Dave

В списке pgsql-performance по дате отправления: