Re: Wht the SEQ Scan ?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Wht the SEQ Scan ?
Дата
Msg-id 20020914171825.S74003-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Wht the SEQ Scan ?  (Glen Eustace <geustace@godzone.net.nz>)
Ответы Re: Wht the SEQ Scan ?  (Glen Eustace <geustace@godzone.net.nz>)
Список pgsql-general
On 15 Sep 2002, Glen Eustace wrote:

> I know this is an FAQ, but each case seems to be different. I can not
> understand why the primary index on this table is not used.  It was
> specifically created to make this query run quickly.

The one in this case is probably the smallint/bigint problem with
constants being converted to int4 when unquoted.
Try client='10143' or client=CAST(10143 as smallint) in the where
clauses instead of client=10143 and see if that gives you usage of the
index.



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

Предыдущее
От: Glen Eustace
Дата:
Сообщение: Re: Panic - Format has changed
Следующее
От: Glen Eustace
Дата:
Сообщение: Re: Wht the SEQ Scan ?