Re: How portable are the POSIX.2 regular expression routines? - Mailing list pgsql-hackers

From Hiroshi Saito
Subject Re: How portable are the POSIX.2 regular expression routines?
Date
Msg-id 070e01c6aa0f$3dca3050$1f110dde@IBMC4B5932F74B
Whole thread Raw
In response to How portable are the POSIX.2 regular expression routines?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
From: "Tom Lane" <tgl@sss.pgh.pa.us>

> Andrew Dunstan <andrew@dunslane.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




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: How portable are the POSIX.2 regular expression routines?
Next
From: "Pavel Stehule"
Date:
Subject: Re: 8.2 features?