From: Andrzej Zawadzki <zawadaa@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: "like" and index
Date: Thu, 26 Feb 2009 14:06:09 +0100
Message-ID: <49A693C1.9060201@gmail.com> (raw)
In-Reply-To: <49A5DC53.7030107@djs-consulting.com>
References: <8f750b7c0902250259w6065515as350aca3b5d7d8173@mail.gmail.com>
<49A553B8.2040009@djs-consulting.com>
<49A5B703.7080700@gmail.com>
<49A5DC53.7030107@djs-consulting.com>
Daniel J. Summers wrote:
> Andrzej Zawadzki wrote:
>> Daniel J. Summers wrote:
>>
>>> Tony Liao wrote:
>>>
>>>> I try to explain analyze,but it doesn't work ,it use seq scan.
>>>>
>>> Generally speaking, LIKE doesn't use indexes.
>>>
>> ?! That's not true at all!!
>>
[...]
> PostgreSQL (the great subject of this mailing list) doesn't do it with
> a standard index (5) - you've got to use a special operator class.
Please try... with "C" locales. Works out of the box.
--
Andrzej Zawadzki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: zawadaa@gmail.com
Subject: Re: "like" and index
In-Reply-To: <49A693C1.9060201@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox