| От | Tom Lane |
|---|---|
| Тема | Re: Query not using index for user defined type |
| Дата | |
| Msg-id | 10820.1366066298@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Query not using index for user defined type (Rodrigo Barboza <rodrigombufrj@gmail.com>) |
| Ответы |
Re: Query not using index for user defined type
|
| Список | pgsql-hackers |
Rodrigo Barboza <rodrigombufrj@gmail.com> writes:
> I created a implic cast for mytype to bigint.
> So when I do the same query it does seq scan, because the column is
> transformed into bigint.
Yeah. One reason why there's not an unsigned int type already is that
it seems impossible to shoehorn it into the numeric promotion hierarchy
without breaking a lot of existing cases. You definitely aren't likely
to get nice results by just adding some implicit casts without doing a
very careful design beforehand.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера