| От | Tom Lane |
|---|---|
| Тема | Re: Multicolumn index including tsvector. |
| Дата | |
| Msg-id | 28097.1259021555@sss.pgh.pa.us обсуждение |
| Ответ на | Multicolumn index including tsvector. (Kris Gale <krisgale@gmail.com>) |
| Ответы |
Re: Multicolumn index including tsvector.
|
| Список | pgsql-general |
Kris Gale <krisgale@gmail.com> writes:
> So what I'm expecting here is that it'll be able to use one of those
> composite indexes to satisfy both the user_id and the vectors constraints.
> That doesn't seem to be the case, based on this query plan:
> explain analyze select body from example where user_id=1 and vectors @@
> to_tsquery('simple', 'when') limit 10;
Try coercing the '1' to a bigint. I don't believe the btree_gist
opclasses have any support for cross-type operators.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера