description of translate()

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: description of translate()
Date: 2010-10-14 00:50:40
Message-ID: AANLkTi==5MZ6dXrP3nvUC_HNn8Jmt7sSgev9qEVh9xXU@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
func.sgml.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Brendan Jurd 2010-10-14 01:15:32 Re: [HACKERS] Docs for archive_cleanup_command are poor
Previous Message Robert Haas 2010-10-13 21:45:03 Re: [HACKERS] Docs for archive_cleanup_command are poor