Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7F12B9FA031 for ; Wed, 22 Aug 2007 17:24:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 29874-01 for ; Wed, 22 Aug 2007 17:24:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id D29F99F9FE0 for ; Wed, 22 Aug 2007 17:24:35 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 5CE0431419; Wed, 22 Aug 2007 22:24:34 +0200 (MET DST) From: "Carlo Stonebanks" X-Newsgroups: pgsql.performance Subject: Re: Fast tsearch2, trigram matching on short phrases Date: Wed, 22 Aug 2007 16:25:16 -0400 Organization: Hub.Org Networking Services Lines: 31 Message-ID: References: <20070822162950.GB24930@uio.no> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org In-Reply-To: <20070822162950.GB24930@uio.no> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480 To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50=0.001, STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200708/246 X-Sequence-Number: 26376 In December I had tried this; it caused a tremendous slowdown in our system. I have avoided it since then. Do you expect pg_trgm to work with phrases? OI had read a post earlier from an earlier support question that suggested that it I SHOULD expect performance to degrade and that pg_trgrm was oriented towards word mathcing, not phrase matching. Carlo ""Steinar H. Gunderson"" wrote in message news:20070822162950.GB24930@uio.no... > On Wed, Aug 22, 2007 at 12:02:54PM -0400, Carlo Stonebanks wrote: >> Any suggestions on where to go with this project to improve performance >> would be greatly appreciated. > > I'm a bit unsure from reading your mail -- have you tried pg_trgm with a > GiST > index? > > /* Steinar */ > -- > Homepage: http://www.sesse.net/ > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >