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

From David Fetter
Subject Re: text_pattern_ops and complex regexps
Date
Msg-id 20090506171507.GP20491@fetter.org
Whole thread Raw
In response to Re: text_pattern_ops and complex regexps  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Wed, May 06, 2009 at 12:10:49PM -0400, Alvaro Herrera wrote:
> Tom Lane wrote:
> > Stephen Frost <sfrost@snowman.net> writes:
> 
> > > Perhaps this is misguided but I would think that the regexp
> > > libraries might have some support for "give me all anchored
> > > required text for this regexp" which we could then use in the
> > > planner.
> > 
> > I wouldn't see why.  It's certainly worth considering to hand the
> > pattern to the regex engine and then burrow into the data
> > structure it builds; but right now we consider that structure to
> > be entirely private to backend/regex/.  There's also the problem
> > that we'd have no easy way to determine how much the result
> > depends on the current regex flavor setting.  There are some cases
> > now where regex_fixed_prefix deliberately omits possible
> > optimizations because of uncertainty about the flavor.
> 
> I think changeable regex flavors turned out to be a bad idea.

+1

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: conditional dropping of columns/constraints
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: text_pattern_ops and complex regexps