Re: pg_trgm performance

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Guillaume Smet <guillaume(dot)smet(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: pg_trgm performance
Date: 2007-02-26 13:10:17
Message-ID: Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, 26 Feb 2007, Guillaume Smet wrote:

> On 2/26/07, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> wrote:
>> Did you rewrite query manually or use rewrite feature of tsearch2 ?
>
> Currently, it's manual. I perform a pg_trgm query for each word of the
> search words (a few stop words excluded) and I generate the ts_query
> with the similar words instead of using the search words.
> Is there any benefit of using rewrite() in this case?

not really, just a matter of possible interesting architectural design.

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gauri Kanekar 2007-02-26 13:22:19 Server Startup Error
Previous Message Guillaume Smet 2007-02-26 12:58:20 Re: pg_trgm performance