Re: BUG #14205: Weird cast long int values to numeric leading to seq scan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #14205: Weird cast long int values to numeric leading to seq scan
Дата
Msg-id 10149.1466520580@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #14205: Weird cast long int values to numeric leading to seq scan  (maxim.boguk@gmail.com)
Список pgsql-bugs
maxim.boguk@gmail.com writes:
> If an input value of the field=value goes over bigint range, the database
> switches to the field::numeric=value::numeric plan, which leads to the seq
> scan as result.

This is not a bug.  If you want to force inputs to be bigint, try using a
cast.

            regards, tom lane

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