Re: index not used for bigint without explicit cast

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: index not used for bigint without explicit cast
Дата
Msg-id 1054043810.93507.1.camel@jester
обсуждение исходный текст
Ответ на index not used for bigint without explicit cast  (Dave E Martin XXIII <postgresql-to.dave@dave.to>)
Список pgsql-bugs
> explain analyze select * from connection_data where id=3D23457;

Quote the number or cast it to int8.

id=3D'23457' or id=3Dcast(23457 as int8)


PostgreSQL has a hard time with mixed datatypes and indexscans at the
moment.

--=20
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

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

Предыдущее
От: Theodore Petrosky
Дата:
Сообщение: Re: Question to You
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: Memory exhausted in AllocSetAlloc(68)