From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: regexp incompatibilites 7.3 and 7.4 |
Date: | 2003-11-24 20:45:29 |
Message-ID: | Pine.GSO.4.58.0311242342100.25164@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 24 Nov 2003, Tom Lane wrote:
> 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;
aha, thanks a lot
>
> > 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?
Actually, we have old application which uses perl function quotemeta()
which escaped any cyrillic characters. I used in example latin characters
for simplicity. I have to use double backslash in psql only.
>
> regards, tom lane
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-11-24 20:51:50 | Re: Using -Wshadow |
Previous Message | David Fetter | 2003-11-24 20:34:59 | Re: Updates for RPMS. |