Re: How portable are the POSIX.2 regular expression routines?

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: How portable are the POSIX.2 regular expression routines?
Date: 2006-07-18 02:09:24
Message-ID: 070e01c6aa0f$3dca3050$1f110dde@IBMC4B5932F74B
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> Tom Lane wrote:
>>> Anyone have an opinion on the portability of the regular expression
>>> functions defined in POSIX 1003.2,
>
>> Does Windows come with POSIX regex libs? I would be a bit surprised.
>
>> When we discussed this at the conference I suggested to Magnus that he
>> not use regexes. When I did initdb I originally looked at using a regex
>> library, and realised that we really wouldn't need them, and the tiny
>> replacement routines I wrote would be sufficient.

+1 for B.
I think so too. I covered the logic of Slonik of Slony-I again.
It was just for Windows.

>
> All we really need is something that can handle patterns including ".*",
> because that's all that is used in the patterns in "resultmap". That
> should be doable (inefficiently, but who cares) in just a few lines of
> code. I'll go for Plan B for the moment.

It is the thing of several lines and being supported will be great,
even if it is the limited object.
Probably, result will be made equal on all platforms.:-)

Regards,
Hiroshi Saito

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joachim Wieland 2006-07-18 04:05:10 Re: [HACKERS] pg_regress in C
Previous Message Tom Lane 2006-07-18 00:39:13 Re: How portable are the POSIX.2 regular expression routines?