Re: Another regexp performance improvement: skip useless paren-captures

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Another regexp performance improvement: skip useless paren-captures
Дата
Msg-id 3786733.1628608522@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Another regexp performance improvement: skip useless paren-captures  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> So AFAICS Perl is acting in the way I'm attributing to POSIX.
> But maybe we should actually read POSIX ...

I went to look at the POSIX spec, and was reminded that it lacks
backrefs altogether.  (POSIX specifies the "BRE" and "ERE" regex
flavors as described in our docs, but not "ARE".)  So there's no
help to be had there.  The fact that Perl doesn't throw an error
is probably the most useful precedent available.

            regards, tom lane



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Quirk of pg_temp schemas ...
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: Another regexp performance improvement: skip useless paren-captures