| От | Andy Colson |
|---|---|
| Тема | Re: hstore, but with fast range comparisons? |
| Дата | |
| Msg-id | 546530A8.80808@squeakycode.net обсуждение исходный текст |
| Ответ на | hstore, but with fast range comparisons? (Guyren Howe <guyren@gmail.com>) |
| Ответы |
Re: hstore, but with fast range comparisons?
|
| Список | pgsql-general |
On 11/13/2014 3:46 PM, Guyren Howe wrote: > I want to do something that is perfectly satisfied by an hstore column. *Except* that I want to be able to do fast (ieindexed) <, > etc comparisons, not just equality. > > From what I can tell, there isn’t really any way to get hstore to do this, so I’ll have to go to a key-value table. ButI thought I’d ask just in case I’m missing something. > I think your missing something. Is it one field in the hstore? Did you try an expression index? create index cars_mph on cars ( (data->'mph') ); thats a btree index, which should support < and >. (Although I've never tried it) -Andy
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера