Re: Using bigint needs explicit cast to use the index

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Using bigint needs explicit cast to use the index
Дата
Msg-id 20040308163320.GA32497@wolff.to
обсуждение исходный текст
Ответ на Re: Using bigint needs explicit cast to use the index  (Andrew Sullivan <ajs@crankycanuck.ca>)
Список pgsql-performance
On Mon, Mar 08, 2004 at 11:05:25 -0500,
  Andrew Sullivan <ajs@crankycanuck.ca> wrote:
>
> "Intended", no.  "Expected", yes.  This topic has had the best
> Postgres minds work on it, and so far nobody's come up with a
> solution.  There was a proposal to put in a special-case automatic
> fix for int4/int8 in 7.4, but I don't know whether it made it in.

This is handled better in 7.5. Instead of doing things deciding what
types of type conversion to do, a check is make for cross type conversion
functions that could be used for an index scan. This is a general solution
that doesn't result in unexpected type conversions.

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Using bigint needs explicit cast to use the index
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Using bigint needs explicit cast to use the index