X-Original-To: pgsql-performance@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B69BB475AE4; Wed, 30 Apr 2003 13:33:47 -0400 (EDT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id E6B79475A45; Wed, 30 Apr 2003 13:33:46 -0400 (EDT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2998830; Wed, 30 Apr 2003 10:33:45 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "Diehl, Jeffrey" , pgsql-sql@postgresql.org, pgsql-performance@postgresql.org Subject: Re: Like search performance. Date: Wed, 30 Apr 2003 10:33:17 -0700 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304301033.18357.josh@agliodbs.com> X-Spam-Status: No, hits=-22.7 required=5.0 tests=BAYES_01,IN_REP_TO,REFERENCES,USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/269 X-Sequence-Number: 1775 Mike, > I have a fairly large table with a char(20) field in it which I search on > quite a bit. The problem is that I tend to do a lot of=20 > "...where field like '%-d%'" type searches on this field. >=20 > Is there any to speed up this type of search? Yes. See the tsearch module in /contrib in your postgresql source. --=20 -Josh Berkus Aglio Database Solutions San Francisco