Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E09AA9FB3A4 for ; Mon, 26 Feb 2007 08:58:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 92639-01 for ; Mon, 26 Feb 2007 08:58:22 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by postgresql.org (Postfix) with ESMTP id DFA0B9FB34E for ; Mon, 26 Feb 2007 08:58:21 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id i28so1385992wxd for ; Mon, 26 Feb 2007 04:58:20 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A+FRl5W+oz8sTm+gQQNXk+29SrpQ9YhxscGOK8sVbm1tGmLV6xibOkmb1vl5nbNDrByV+Q//RRDPKCWQifNdiHePJf3qZTrEryHJDBoYzGHGEtyVg1wHIl5Jtt/vD1lPNUn/nVrZnCeE5O96dxPizRPn8Z0F1D490mWDa/Va9xg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nJ3uPdpN/TQYl3GwhjRbrHkL4iP2DqYdQ5g5IwDVrQ4jOCwwcFJbaNzO5ixwTFVupdhUNWzJ7ETkSXPvoV6BZEyshhmX2boJdfbXba/N1IPCa3w0WB/1gqLxXkkA8uMRZSl6laSes06rBSpg863ru5u4UJ4fUpMyXU0UsgOPzB8= Received: by 10.90.25.3 with SMTP id 3mr4549346agy.1172494700680; Mon, 26 Feb 2007 04:58:20 -0800 (PST) Received: by 10.90.113.7 with HTTP; Mon, 26 Feb 2007 04:58:20 -0800 (PST) Message-ID: <1d4e0c10702260458w31c1f01bu64c924b543e811a9@mail.gmail.com> Date: Mon, 26 Feb 2007 13:58:20 +0100 From: "Guillaume Smet" To: "Oleg Bartunov" Subject: Re: pg_trgm performance Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/284 X-Sequence-Number: 23338 On 2/26/07, Oleg Bartunov 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