How portable are the POSIX.2 regular expression routines?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема How portable are the POSIX.2 regular expression routines?
Дата
Msg-id 19078.1153181044@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: How portable are the POSIX.2 regular expression routines?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Anyone have an opinion on the portability of the regular expression
functions defined in POSIX 1003.2,
http://www.opengroup.org/onlinepubs/007908799/xsh/regcomp.html
?  In particular, do you know of any platforms we support that don't
have them?

The reason I'm asking is that to convert pg_regress into C code
we need some regex functionality, and the easiest way to get that
would be to assume that the C library has it ;-).  In Magnus's
draft patch he assumed that we could link src/backend/regex/*
into pg_regress, but I think that's a really bad way to go.
Even though that code is mostly independent of the rest of the
backend at the moment, it seems highly unlikely that we'll keep
it so forever --- regc_locale.c in particular needs to tie into
whatever solution we wind up using for general locale support.

Plan B would be to kluge up some quick-and-dirty code to handle
just the small subset of regex syntax that we actually use in
resultmap ...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] pg_regress in C
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: How portable are the POSIX.2 regular expression routines?