Default Cast type

Поиск
Список
Период
Сортировка
От Markus Schulz
Тема Default Cast type
Дата
Msg-id 200703071435.14979.msc@antzsystem.de
обсуждение исходный текст
Ответы Re: Default Cast type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,
how can i choose a default data type for casts?
PG 7.4 has some problems to use an existing index, if the datatype not
match.
For example i have a int8 primary id column and search for this column,
i can't use the index for queries like:
SELECT ... WHERE id = 12345
if i'm use:
SELECT ... WHERE id = 12345::int8
it will use the index.

Is there a solution for PG 7.4 to choose the default datatype for this
way of casting?


--
Markus Schulz

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

Предыдущее
От: Markus Schulz
Дата:
Сообщение: Re: pg_dump and restore problem with function as DEFAULT-Constraint
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgres slower on nested queries