Re: INDEX suggestion needed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: INDEX suggestion needed
Дата
Msg-id 10421.1039706750@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: INDEX suggestion needed  (Thomas Beutin <tyrone@laokoon.IN-Berlin.DE>)
Список pgsql-general
Thomas Beutin <tyrone@laokoon.IN-Berlin.DE> writes:
> tb=# EXPLAIN select count(distinct a_id) from stat_pages WHERE m_id = 35 AND ( visit >= '2002-12-01' OR visit <=
'2002-12-11');

Do you really mean OR there, and not AND?  As given, the query looks
mighty unselective to me --- I'd think it should *not* use an index.
The planner evidently thinks so too.  (How accurate is the rowcount
estimate, anyway?)

            regards, tom lane

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

Предыдущее
От: "SZŰCS Gábor"
Дата:
Сообщение: Re: Planner weakness (was: Re: ExecEvalExpr: unknown expression type 108)
Следующее
От: Jeff Eckermann
Дата:
Сообщение: Re: Is it possible to Import tables and its data from Ms Access