Re: Querying 19million records very slowly

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Querying 19million records very slowly
Дата
Msg-id 27060.1119448239@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Querying 19million records very slowly  (Tobias Brox <tobias@nordicbet.com>)
Список pgsql-performance
Tobias Brox <tobias@nordicbet.com> writes:
>> time (datetime) > '2005-06-21 10:36:22+02'
>> or
>> time (timestamp) > 'some timestamp pointing to yesterday'

> If I have understood it correctly, the planner will recognize the timestamp
> and compare it with the statistics in the first example but not in the
> second, and thus it will be more likely to use index scan on the first one
> and seqscan on the second.

That statement is true for releases before 8.0.  Kjell has not at any
point told us what PG version he is running, unless I missed it...

            regards, tom lane

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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Forums & tsearch2 - best practices reg. concurrency
Следующее
От: Paul Ramsey
Дата:
Сообщение: Re: Querying 19million records very slowly