Re: regexp incompatibilites 7.3 and 7.4
От | Oleg Bartunov |
---|---|
Тема | Re: regexp incompatibilites 7.3 and 7.4 |
Дата | |
Msg-id | Pine.GSO.4.58.0311242342100.25164@ra.sai.msu.su обсуждение исходный текст |
Ответ на | Re: regexp incompatibilites 7.3 and 7.4 (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On Mon, 24 Nov 2003, Tom Lane wrote: > Oleg Bartunov <oleg@sai.msu.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@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83
В списке pgsql-hackers по дате отправления: