Re: Hstore index for full text search

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Hstore index for full text search
Дата
Msg-id CAHOFxGoZo8U8MvQDwjDu31ByqdbqW97m8Ud_BQe-E17wzL5qZw@mail.gmail.com
обсуждение исходный текст
Ответ на Hstore index for full text search  (Burhan Akbulut <burhan.akbulut@cooksoft.com.tr>)
Ответы Re: Hstore index for full text search  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Hash Cond: (o.courier_id = cc.id)
Filter: (((o.tracker_code)::text ~~* '%1654323%'::text) OR ((table_cus.name)::text ~~* '%1654323%'::text) OR ((au.username)::text ~~ '%1654323%'::text) OR ((o.source)::text ~~* '%1654323%'::text) OR ((o.ops -> 'shop'::text) ~~* '%1654323%'::text) OR ((o.ops -> 'camp_code'::text) ~~* '%1654323%'::text) OR ((city.name)::text ~~* '%1654323%'::text) OR ((co.name)::text ~~* '%1654323%'::text) OR ((o.tr_code)::text ~~* '%1654323%'::text) OR ((o.ops ? 'shipping_company'::text) AND ((o.ops -> 'shipping_company'::text) ~~* '%1654323%'::text)) OR ((cc.name)::text ~~* '%1654323%'::text))


All those OR conditions on different tables and fields seems like it will be unlikely that the planner will do anything with the index you are trying to create (for this query).

On the error, I came across discussions on dba.stackexchange.com referencing a limit of about 1/3 of the page size (8192) for every key because of it being a btree underneath. It could be one or more of your keys in ops (like shop, camp_code, and shipping_company) is much longer than those examples shown in the query.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Burhan Akbulut
Дата:
Сообщение: Hstore index for full text search
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Hstore index for full text search