The type int8 and the use of indexes

Поиск
Список
Период
Сортировка
От nelson@radix.com.br
Тема The type int8 and the use of indexes
Дата
Msg-id 980460713.3a70a4a9223fc@gandalf.radix.com.br
обсуждение исходный текст
Ответы Re: The type int8 and the use of indexes
Список pgsql-general
   Hi,

   I realized that PostgreSQL (7.0.3) optimizer doesn´t use indexes in a query
like "select * from my table where pk=1", where the field pk is of
type int8.
I changed the type to int4, and now it uses the index (a lot faster). I also
tryed changing the type to numeric, with the same results.
   Why does it happen? Is there something special with type int8 ???


                                       Thanks,
                                            Nelson





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

Предыдущее
От: Tomaz Borstnar
Дата:
Сообщение: option to log just queries with some error - pgsql 7.1
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: The type int8 and the use of indexes