Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7B7B69FA5EA for ; Fri, 29 Sep 2006 01:49:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 59810-05 for ; Fri, 29 Sep 2006 01:49:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id DA0759FA432 for ; Fri, 29 Sep 2006 01:49:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8T4nb91009974; Fri, 29 Sep 2006 00:49:37 -0400 (EDT) To: "Carlo Stonebanks" cc: pgsql-performance@postgresql.org Subject: Re: Performace Optimization for Dummies In-reply-to: References: Comments: In-reply-to "Carlo Stonebanks" message dated "Fri, 29 Sep 2006 00:46:54 -0400" Date: Fri, 29 Sep 2006 00:49:37 -0400 Message-ID: <9973.1159505377@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.096 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/418 X-Sequence-Number: 21104 "Carlo Stonebanks" writes: > But is there any way to create an index expression that will help with: > where foo like '%bar%'? If you are concerned about that, what you are probably really looking for is full-text indexing. See contrib/tsearch2 for our current best answer to that. regards, tom lane