Re: Leading substrings - alternatives with 8.1.3?
Вложения
В списке pgsql-general по дате отправления:
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Leading substrings - alternatives with 8.1.3? |
| Дата | |
| Msg-id | 20060501210528.GC27150@svana.org обсуждение |
| Ответ на | Re: Leading substrings - alternatives with 8.1.3? (Wes <wespvp@syntegra.com>) |
| Список | pgsql-general |
On Mon, May 01, 2006 at 01:45:35PM -0500, Wes wrote: > On 5/1/06 12:47 PM, "Martijn van Oosterhout" <kleptog@svana.org> wrote: > > > Check the documentation, but if you declare a index with (for example) > > text_pettern_ops, then LIKE will work even if the rest of your DB is > > UTF-8. > > My understanding of using operator classes is that I'd have to create two > indexes for each column - one with and one without the operator class. That > is also what was indicated in the original thread. Defining multiple > indexes on a given column isn't feasible, due to the database size (100 > million rows per day). Oh right. If you want ordinary <,=,> to work for utf-8 and be indexed, you need to have both. OTOH, if you're happy with text_pattern_ops for ordinary lookups, you can use ~<~, ~=~, ~>~ to use the that index for matches.. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера