Re: Hstore index for full text search

2020-08-11 Thread Tom Lane
Michael Lewis writes: > On Tue, Aug 11, 2020 at 4:46 PM Tom Lane wrote: >> Another point is that you will only >> get an indexscan if *every* OR'd clause matches some index. The example >> query looks sufficiently unstructured that that might be hard to ensure. > Does this still apply when the

Re: Is there a known bug with SKIP LOCKED and "tuple to be locked was already moved to another partition due to concurrent update"?

2020-08-11 Thread Jim Jarvie
Hi Gunther & List, I think I have an extremely similar issue and things point in the same direction of a potential issue for skip locked on partitioned tables. Background is I had a queue table on v9.6 with fairly high volume (>50M items, growth in the 1+M/daily). Processing the queue with

Re: Hstore index for full text search

2020-08-11 Thread Michael Lewis
On Tue, Aug 11, 2020 at 4:46 PM Tom Lane wrote: > A GIN index on an hstore column only provides the ability to search for > exact matches to hstore key strings. There are a few bells and whistles, > like the ability to AND or OR such conditions. But basically it's just an > exact-match engine,

Re: Hstore index for full text search

2020-08-11 Thread Tom Lane
Michael Lewis writes: > 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) ~~* > '%

Re: Hstore index for full text search

2020-08-11 Thread Michael Lewis
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 -> 'cam

Hstore index for full text search

2020-08-11 Thread Burhan Akbulut
Hi all, I need help in full text search optimization for hstore type. I added my query to explain.depesz, you can check the query and also i added explain analyze result in this link: https://explain.depesz.com/s/QT1e table_ord.ops column type is hstore. I couldn't find the effective index that w