Re: [SQL] How can I optimize a research on text field? - Mailing list pgsql-sql

From Mike Meyer
Subject Re: [SQL] How can I optimize a research on text field?
Date
Msg-id Pine.BSF.4.05.9810301017590.5269-100000@guru.phone.net
Whole thread Raw
In response to How can I optimize a research on text field?  (Jerome Knobl <jknobl@mandanet.ch>)
Responses Re: [SQL] How can I optimize a research on text field?  ("G.Elangovan " <elangog@wipinfo.soft.net>)
List pgsql-sql
On Fri, 30 Oct 1998, Jerome Knobl wrote:
> I tried btree and hash method, but when I make a clause like : where nom
> like '%PICASSO%'; the request don't use any index!?!

Check the FAQ, question 3.10 (or thereabouts). Text searches only use
the index if they are searching for text at the start of the field.

    <mike



pgsql-sql by date:

Previous
From: Jerome Knobl
Date:
Subject: How can I optimize a research on text field?
Next
From: "pgateau ."
Date:
Subject: sql libpq access to varchar column