description of translate() - Mailing list pgsql-docs

From Josh Kupershmidt
Subject description of translate()
Date
Msg-id AANLkTi==5MZ6dXrP3nvUC_HNn8Jmt7sSgev9qEVh9xXU@mail.gmail.com
Whole thread Raw
Responses Re: description of translate()  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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

Attachment

pgsql-docs by date:

Previous
From: Fujii Masao
Date:
Subject: formula about the number of WAL files
Next
From: Josh Kupershmidt
Date:
Subject: Re: Documenting removal of nonnullvalue() and friends