| От | Tom Lane |
|---|---|
| Тема | Re: fast case-insensitive sort |
| Дата | |
| Msg-id | 5353.1050386098@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: fast case-insensitive sort ("Sigi Jekabsons" <sigi.j@workskillsprofessionals.com.au>) |
| Список | pgsql-sql |
"Sigi Jekabsons" <sigi.j@workskillsprofessionals.com.au> writes:
> 'surname' is varchar(255), indexed in the manner shown on my
> previous post. You're quite right, though, I just tried indexing and
> sorting by a column of type text and that worked just fine, it used the
> index in the order by. Why is that?
I would have said that the presence of the implicit varchar-to-text cast
prevented the system from detecting that the expression matches the
index value. But if it's able to detect the match in one case and not
the other, that might be a garden-variety bug. Will look at it ...
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера