Re: text_pattern_ops index *not* used in field = value condition?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: text_pattern_ops index *not* used in field = value condition?
Date: 2007-09-15 15:12:29
Message-ID: 20070915151229.GA18296@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Sep 15, 2007 at 11:09:39AM -0400, Tom Lane wrote:
> hubert depesz lubaczewski <depesz(at)depesz(dot)com> writes:
> > index is created using text_pattern_ops so i will be able to use it in 'where word like '...%''
> > but, it appears it is not usable with = operator:
> = is not one of the members of the text_pattern_ops operator class.

ok, but is there any reason for this? i mean - i'm not really sure why
this index cannot be used.

best regards

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA. here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-09-15 15:48:19 Re: text_pattern_ops index *not* used in field = value condition?
Previous Message Tom Lane 2007-09-15 15:09:39 Re: text_pattern_ops index *not* used in field = value condition?