Re: AREs in substring(from)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AREs in substring(from)
Дата
Msg-id 4737.1103734201@sss.pgh.pa.us
обсуждение исходный текст
Ответ на AREs in substring(from)  (Brandon Craig Rhodes <brandon@oit.gatech.edu>)
Список pgsql-general
Brandon Craig Rhodes <brandon@oit.gatech.edu> writes:
> As the documentation leads me to expect, my Postgresql 7.4
> installation produces:
>    select substring('Bar, Foo' FROM '.')  ->  'B'
> but even though my regex_flavor = advanced,
>    select substring('Bar, Foo' FROM '\\w')  ->  NULL
>    select substring('Bar, Foo' FROM '***:\\w')  ->  NULL
> whereas I expect these to produce 'B' as well.  What am I missing?

[ scratches head... ]  It works for me.

regression=# select substring('Bar, Foo' FROM '\\w');
 substring
-----------
 B
(1 row)

regression=# select substring('Bar, Foo' FROM '***:\\w');
 substring
-----------
 B
(1 row)

What locale and encoding are you using?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Strange Index behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: valid using INITIALLY DEFERRED