Re: Force ARE in regexp string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Force ARE in regexp string
Дата
Msg-id 3954.1284557580@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Force ARE in regexp string  (Johannes Öberg<johannes.oberg@proactivegaming.com>)
Ответы Re: Force ARE in regexp string  (Johannes Öberg<johannes.oberg@proactivegaming.com>)
Список pgsql-general
=?ISO-8859-1?Q?Johannes_=D6berg?= <johannes.oberg@proactivegaming.com> writes:
>   Hi! I'm trying to do an advanced regexp match but postgres doesn't
> seem to let me.

> I've set regex_flavor to ARE, and I've tried prefixing my strings, i.e.
> ~* E'***:abc' but for some reason postgres treats all my regexps as BRE's.

> Common newbie gotchas?

Well, the symptom as described seems pretty improbable.  You didn't show
an exact example, but I'm suspecting the real problem is that you're not
allowing for backslashes in a string literal getting eaten by string
parsing.  Do the cases that don't work for you involve backslashes in
the regex?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "tamanna madaan"
Дата:
Сообщение: Re: workaround steps for autovaccum problem
Следующее
От: "Bremer, Gerd"
Дата:
Сообщение: Upload latest JDBC driver releases to Maven Central