Re: BUG #4341: planner doesn't using index for = operation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4341: planner doesn't using index for = operation
Date
Msg-id 14352.1218036049@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4341: planner doesn't using index for = operation  ("Lampa" <lampacz@gmail.com>)
Responses Oder by not working
List pgsql-bugs
"Lampa" <lampacz@gmail.com> writes:
> With varchar_pattern_ops planner is not using index(first explain) but when
> use LIKE index is used.
> I must create another index without varchar_pattern_ops flag to get equal
> speed results.

Yup, this is expected behavior because '=' is not part of the
varchar_pattern_ops operator class.

(Things will be better in 8.4, but it's not possible to fix it in
existing release branches.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: "paull"
Date:
Subject: BUG #4343: upper, lower, initcap do not work with umlaute? (important!)
Next
From: "Blanco, Jose"
Date:
Subject: Oder by not working