pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Oleg Bartunov <oleg@sai.msu.su>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_trgm performance
Date: Mon, 26 Feb 2007 13:58:20 +0100
Message-ID: <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0702261552120.400@sn.sai.msu.ru>
References: <82mz4k4mt7.fsf@mid.bfk.de>
	<20070115125834.GA28248@uio.no>
	<1d4e0c10702231509k7ad24e2ck3a149a2e3a2899f7@mail.gmail.com>
	<20070224003105.GA11010@uio.no>
	<1d4e0c10702231704y46270252o494b5d6180d7574f@mail.gmail.com>
	<20070224100737.GA13557@uio.no>
	<1d4e0c10702260442m1fba9dc4r30ada1044f869a3b@mail.gmail.com>
	<Pine.LNX.4.64.0702261552120.400@sn.sai.msu.ru>

On 2/26/07, Oleg Bartunov <oleg@sai.msu.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?

--
Guillaume



view thread (10+ messages)  latest in thread

Message-ID: <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com>
Permalink:  ../1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: guillaume.smet@gmail.com, oleg@sai.msu.su
  Subject: Re: pg_trgm performance
  In-Reply-To: <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com>
  References: <82mz4k4mt7.fsf@mid.bfk.de> <20070115125834.GA28248@uio.no> <1d4e0c10702231509k7ad24e2ck3a149a2e3a2899f7@mail.gmail.com> <20070224003105.GA11010@uio.no> <1d4e0c10702231704y46270252o494b5d6180d7574f@mail.gmail.com> <20070224100737.GA13557@uio.no> <1d4e0c10702260442m1fba9dc4r30ada1044f869a3b@mail.gmail.com> <Pine.LNX.4.64.0702261552120.400@sn.sai.msu.ru> <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox