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-10 22:03:28
Message-ID: 7488.1341957808@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.

I have committed fixes for this. Thanks for the report!

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Efraín Déctor 2012-07-10 22:16:10 Error with plpython
Previous Message Efraín Déctor 2012-07-10 21:59:45 Error with plpython