Re: PostgreSQL performance in simple queries

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: PostgreSQL performance in simple queries
Дата
Msg-id 40ABD6CC.3070206@samurai.com
обсуждение исходный текст
Ответ на PostgreSQL performance in simple queries  (Eugeny Balakhonov <c0ff75@mail.ru>)
Ответы Re: PostgreSQL performance in simple queries
Список pgsql-performance
Eugeny Balakhonov wrote:
> I tries to run simple query:
>
> select * from files_t where parent = 3333

Use this instead:

select * from files_t where parent = '3333';

("parent = 3333::int8" would work as well.)

PostgreSQL (< 7.5) won't consider using an indexscan when the predicate
involves an integer literal and the column datatype is int2 or int8.

-Neil

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

Предыдущее
От: "Gary Doades"
Дата:
Сообщение: Re: PostgreSQL performance in simple queries
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Wierd context-switching issue on Xeon