Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: func.sgml.patch
Description: application/octet-stream (1.1 KB)

Responses

pgsql-docs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group