Re: BUG? Regular expression matching of optional character group at beginning of RE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Viktor Rosenfeld <listuser36(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: BUG? Regular expression matching of optional character group at beginning of RE
Date: 2012-07-07 16:09:23
Message-ID: 23411.1341677363@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Viktor Rosenfeld <listuser36(at)googlemail(dot)com> writes:
> I've noticed that regular expressions which are anchored at the
> beginning of the text but have an optional part at the beginning
> (e.g. '^(ge)?kommen$') are not evaluated correctly if there is an
> index on the column.

Ugh. Yeah, that's a bug, and it looks a bit messy to fix ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wim Goedertier 2012-07-08 10:59:29 recover as much as possible (xlog flush request not satisfied)
Previous Message Chris Angelico 2012-07-07 14:39:12 Re: Help with sql