description of translate()

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема description of translate()
Дата
Msg-id AANLkTi==5MZ6dXrP3nvUC_HNn8Jmt7sSgev9qEVh9xXU@mail.gmail.com
обсуждение исходный текст
Ответы Re: description of translate()
Список pgsql-docs
Hi all,

I noticed that the existing description of the string translate()
function <http://www.postgresql.org/docs/current/static/functions-string.html#FUNCTIONS-STRING-OTHER>
currently has a description of:

  Any character in string that matches a character in the from set is
replaced by the corresponding character in the to set

This description leaves off the other half of translate()'s
capability, namely stripping unwanted characters entirely. The comment
for the translate() in oracle_compat.c is helpful here, saying:

  If from is longer than to, occurrences of the extra characters in
from are deleted.

Attached is a patch to update the doc page based on this comment's wording.

Josh

Вложения

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: formula about the number of WAL files
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: Documenting removal of nonnullvalue() and friends