index problem

Поиск
Список
Период
Сортировка
От Oleg Lebedev
Тема index problem
Дата
Msg-id 993DBE5B4D02194382EC8DF8554A5273016CDB@postoffice.waterford.org
обсуждение исходный текст
Список pgsql-sql
Hi,
I have an objectid field of type bigint, but when I run queries like:
select * from table where objectid=123;
index is not used on objectid even though it's declared.
However when I run:
select * from table where objectid='123';
index is used.
Is there an option I can set so that postgres starts using indexes on numberic field without requiring
conversion to varchar?
thanks,
 
Oleg

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

Предыдущее
От: Denis
Дата:
Сообщение: Re: slow DELETE queries
Следующее
От: Marcos Garcia
Дата:
Сообщение: Slow SELECT with distinct, in a TIMESTAMP type column