| От | Tom Lane |
|---|---|
| Тема | Re: Indexing fragments of a column's value ? |
| Дата | |
| Msg-id | 3334146.1699041690@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Indexing fragments of a column's value ? (David Gauthier <dfgpostgres@gmail.com>) |
| Ответы |
Re: Indexing fragments of a column's value ?
|
| Список | pgsql-general |
David Gauthier <dfgpostgres@gmail.com> writes:
> I'm asking about the possibility of indexing portions of a column's value
> where the column has a static field format.
GIN indexes are meant for exactly that. You might have to write your
own opclass to break up the input values in the way you want though.
A less difficult answer would be to write a function that breaks up
the input into (say) an array of text and then use the existing
GIN array support. But you'd pay for that by needing to write more
complicated queries to use the index.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера