Re: Re: Patch: regexp_matches variant returning an array of matching positions

Поиск
Список
Период
Сортировка
Искать
От
Erik Rijkers
Тема
Re: Re: Patch: regexp_matches variant returning an array of matching positions
Дата
Msg-id
b95a595edea4075ab78cfe114aa43925.squirrel@webmail.xs4all.nl
Ответ на
Список
Дерево обсуждения
Patch: regexp_matches variant returning an array of matching positions Björn Harrtell <bjorn.harrtell@gmail.com>
Re: Patch: regexp_matches variant returning an array of matching positions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Patch: regexp_matches variant returning an array of matching positions David Johnston <polobo@yahoo.com>
Re: Re: Patch: regexp_matches variant returning an array of matching positions "Erik Rijkers" <er@xs4all.nl>
Re: Patch: regexp_matches variant returning an array of matching positions David Johnston <polobo@yahoo.com>
Re: Patch: regexp_matches variant returning an array of matching positions Björn Harrtell <bjorn.harrtell@gmail.com>
On Wed, January 29, 2014 05:16, David Johnston wrote:
>
> How does this resolve in the patch?
>
> SELECT regexp_matches('abcabc','((a)(b)(c))','g');
>

With the patch:

testdb=# SELECT regexp_matches('abcabc','((a)(b)(c))','g'), regexp_matches_positions('abcabc','((a)(b)(c))');regexp_matches | regexp_matches_positions
----------------+--------------------------{abc,a,b,c}    | {1,1,2,3}{abc,a,b,c}    | {1,1,2,3}
(2 rows)

testdb=# SELECT regexp_matches('abcabc','((a)(b)(c))','g'), regexp_matches_positions('abcabc','((a)(b)(c))', 'g');regexp_matches | regexp_matches_positions
----------------+--------------------------{abc,a,b,c}    | {1,1,2,3}{abc,a,b,c}    | {4,4,5,6}
(2 rows)



( in HEAD:

testdb=# SELECT regexp_matches('abcabc','((a)(b)(c))','g');regexp_matches
----------------{abc,a,b,c}{abc,a,b,c}
(2 rows)
)






В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: David Johnston
Дата:
FAQ