Re: Problem with LIKE-Performance

From: "Dave Dutcher" <dave(at)tridecap(dot)com>
To: "'Tarabas \(Manuel Rorarius\)'" <tarabas(at)tarabas(dot)de>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Problem with LIKE-Performance
Date: 2006-04-18 15:08:27
Message-ID: 001a01c662f9$f2449f00$8300a8c0@tridecap.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> -----Original Message-----
> From: pgsql-performance-owner(at)postgresql(dot)org
[mailto:pgsql-performance-
> owner(at)postgresql(dot)org] On Behalf Of Tarabas (Manuel Rorarius)
> Subject: [PERFORM] Problem with LIKE-Performance
>
> Hi!
>
> I am having trouble with like statements on one of my tables.

It looks like you are getting a sequential scan instead of an index
scan. What is your locale setting? As far as I know Postgres doesn't
support using indexes with LIKE unless you are using the C locale.

Also, in the future you only need to post EXPLAIN ANALYZE not EXPLAIN
ANALYZE VERBOSE.

Dave

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tarabas (Manuel Rorarius) 2006-04-18 15:16:18 Re: Problem with LIKE-Performance
Previous Message Tarabas (Manuel Rorarius) 2006-04-18 14:35:13 Problem with LIKE-Performance