Re: rtrim giving weird result

Поиск
Список
Период
Сортировка
От G. Anthony Reina
Тема Re: rtrim giving weird result
Дата
Msg-id 3AB0FD0C.AB9B72CC@nsi.edu
обсуждение исходный текст
Ответ на rtrim giving weird result  ("G. Anthony Reina" <reina@nsi.edu>)
Ответы Re: rtrim giving weird result  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список pgsql-hackers
Ken Hirsch wrote:

> So rtrim("center_out_opto", "_opto") returns
>     "center_ou"
> because "u" is not in the set {o, p, t, _} but all the characters after it
> are.
> rtrim("center_out_opto", "pot_") will produce the same thing.
>

That seems like an odd definition (although as Tom points out, it is
consistent with Oracle).

Is there a way to just remove the "_opto" from the end of the string?

-Tony




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sheduling in SQL
Следующее
От: Tom Lane
Дата:
Сообщение: Allowing WAL fsync to be done via O_SYNC