Re: select all matches for a regular expression ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select all matches for a regular expression ?
Дата
Msg-id 17939.1172243150@sss.pgh.pa.us
обсуждение исходный текст
Ответ на select all matches for a regular expression ?  ("Anton Melser" <melser.anton@gmail.com>)
Ответы Re: select all matches for a regular expression ?  ("Anton Melser" <melser.anton@gmail.com>)
Список pgsql-general
"Anton Melser" <melser.anton@gmail.com> writes:
> I need to be able to get all the matches for a particular regexp from
> a text field that I need to use in another query in a function. Is
> this possible with plpgsql? Do I have to install the perl language?

You need plperl (or pltcl; likely plpython would work too) --- the
built-in regex functions don't have any way to return more than the
first match.  There's a patch pending to provide more functionality
here for 8.3, but it won't help you today.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Warning "TupleDesc reference leak"
Следующее
От: djé djé
Дата:
Сообщение: false unique constraint error...for me