Re: text_pattern_ops and complex regexps - Mailing list pgsql-hackers

From Tom Lane
Subject Re: text_pattern_ops and complex regexps
Date
Msg-id 5986.1241622006@sss.pgh.pa.us
Whole thread Raw
In response to text_pattern_ops and complex regexps  (Stephen Frost <sfrost@snowman.net>)
Responses Re: text_pattern_ops and complex regexps  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.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


pgsql-hackers by date:

Previous
From: Олег Царев
Date:
Subject: Some questions about PostgreSQL source code
Next
From: Stephen Frost
Date:
Subject: Re: text_pattern_ops and complex regexps