Re: regexp incompatibilites 7.3 and 7.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: regexp incompatibilites 7.3 and 7.4
Date: 2003-11-24 17:53:26
Message-ID: 21508.1069696406@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> seems for regexp which works in 7.3 is failing in 7.4.
> Is't possible to configure pgsql to be compatible with 7.3 regexp ?

SET regex_flavor TO extended;

> www=# select 'problem' ~ '^\\p';
> ERROR: invalid regular expression: invalid escape \ sequence

I think, though, that this is telling you about a bug in your
application. You do realize that under extended regex rules there's
no difference between that pattern and '^p' ? Is that *really* what
you want?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2003-11-24 18:19:26 Re: Sponsoring enterprise features
Previous Message Kurt Roeckx 2003-11-24 17:47:18 Re: Using -Wshadow