Viktor Rosenfeld <listuser36@googlemail.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