Re: regexp_matches and regexp_split are inconsistent

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regexp_matches and regexp_split are inconsistent
Дата
Msg-id 12786.1186968003@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: regexp_matches and regexp_split are inconsistent  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-hackers
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Fri, 10 Aug 2007, Tom Lane wrote:
>> Is this what we want?  Arguably regexp_split is doing the most
>> reasonable thing for its intended usage, but the strict definition of
>> regexp matching seems to require what regexp_matches does.  I think
>> we need to either change one function to match the other, or else
>> document the inconsistency.

> I'm not sure how many languages do this, but at least perl seems to work
> similarly, which makes me guess that it's probably similar in a bunch of
> languages. If it is, then we should probably just document the
> inconsistency.

The Perl precedent is good enough for me.  Documented...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Interesting misbehavior of repalloc()
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Maximum row size