Re: invalid regexp crashes the server on windows or 9.3

Поиск
Список
Период
Сортировка
От Erik Rijkers
Тема Re: invalid regexp crashes the server on windows or 9.3
Дата
Msg-id 07fe9ef4f29f205d73e9ff7556e64e08.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на invalid regexp crashes the server on windows or 9.3  (Marc Mamin <M.Mamin@intershop.de>)
Ответы Re: invalid regexp crashes the server on windows or 9.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, September 25, 2013 09:33, Marc Mamin wrote:
> Hi,
>
> This regexp call freezes with almost 100% CPU usage, so I guess it creates an infinite loop.
>
> With  Postgres 9.1 on Linux, I can kill the backend cleanly and get following message:
>
> cic_db=# select regexp_matches ('aa bb aa ba baa x','(^((?!aa)))+','gx');
> ERROR:  invalid regular expression: nfa has too many states
>
> on Windows and Postgres 9.3, I used the terminate icon from pgAdmin,
> which resulted in a FATAL error, killed all other processes and finally stopped the server.
>
> I guesss this is a windows issue, but we do not have a Postgres 9.3 installation on Linux yet, so that I can't test
it.
>

On 9.3 and 9.4devel, on linux (centos 6.4), that statement / regex returns after ~2 minutes (on a modest desktop) with
that
same error, but not crashing.


Erik Rijkers








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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Minmax indexes
Следующее
От: David Rowley
Дата:
Сообщение: Re: FW: REVIEW: Allow formatting in log_line_prefix