Re: LIKE Query performance - Mailing list pgsql-performance

From Marcin Stępnicki
Subject Re: LIKE Query performance
Date
Msg-id 179149fe0901280127l1d1ec452x3ac1a8947ee66b64@mail.gmail.com
Whole thread Raw
In response to LIKE Query performance  ("Hari, Balaji" <Balaji_Hari@bmc.com>)
List pgsql-performance
On Wed, Jan 28, 2009 at 12:41 AM, Hari, Balaji <Balaji_Hari@bmc.com> wrote:
> EXPLAIN ANALYZE SELECT event_id, category, current_session_number,
> description, event_type_id, realm_name, root_session_number, severity,
> source_name, target_key, target_name, timestamp, jdo_version FROM event
> WHERE description like '%mismatch%' ORDER BY timestamp desc;
(...)
> Is there any tweaks to force pgsql to use index on description?

How long is usually the description? For me it sounds like the job for
tsearch2 module, which should be in "contrib" section in 8.1.

pgsql-performance by date:

Previous
From: Rohan Pethkar
Date:
Subject: Need help in setting up DBT2 for PostgreSQL
Next
From: "A. Kretschmer"
Date:
Subject: Re: LIKE Query performance