Re: text_pattern_ops and complex regexps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: text_pattern_ops and complex regexps
Date: 2009-05-06 15:00:06
Message-ID: 5986.1241622006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> I don't see why the last case can't use the index.

The planner's understanding of regexps is far weaker than yours.

(In particular, I think it's set up to abandon optimization if it
sees | anywhere.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2009-05-06 15:04:49 Re: text_pattern_ops and complex regexps
Previous Message Олег Царев 2009-05-06 14:54:54 Some questions about PostgreSQL source code