Re: query with pg_trgm sometimes very slow

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: query with pg_trgm sometimes very slow
Date: 2015-09-08 21:24:24
Message-ID: CAHyXU0x7UO49pr6pLk8W30DF+u8xe-EG7o8hHY8YJeHD8WhC2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Sep 8, 2015 at 4:21 PM, Tomas Vondra
<tomas(dot)vondra(at)2ndquadrant(dot)com> wrote:
> On 09/08/2015 09:15 PM, Merlin Moncure wrote:
> ...
>>>
>>> I just had the exact same problem, and indeed gin fares much better.
>>
>>
>> Also, with 9.5 we will see much better worst case performance from gin
>> via Jeff's patch:
>>
>> http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=97f3014647a5bd570032abd2b809d3233003f13f
>>
>> (I had to previously abandon pg_tgrm for a previous project and go
>> with solr; had this patch been in place that would not have happened)
>
> Except that pg_tgrm-1.2 is not included in 9.5, because it was committed in
> July (i.e. long after 9.5 was branched).

oops! thinko. it shouldn't be too difficult to back patch though if
you're so inclined?

merlin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message anil7385 2015-09-09 10:43:01 VACUUM VERBOSE ANALYZE taking long time to process.
Previous Message Tomas Vondra 2015-09-08 21:21:21 Re: query with pg_trgm sometimes very slow