pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Bartunov <oleg@sai.msu.su>
To: Guillaume Smet <guillaume.smet@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_trgm performance
Date: Mon, 26 Feb 2007 16:10:17 +0300 (MSK)
Message-ID: <Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru> (raw)
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>

On Mon, 26 Feb 2007, Guillaume Smet wrote:

> 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?

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83



view thread (10+ messages)

Message-ID: <Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru>
Permalink:  ../Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru/
Also on:    postgresql.org/message-id/Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru

 · 

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: oleg@sai.msu.su, guillaume.smet@gmail.com
  Subject: Re: pg_trgm performance
  In-Reply-To: <Pine.LNX.4.64.0702261608280.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> <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com> <Pine.LNX.4.64.0702261608280.400@sn.sai.msu.ru>

* 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