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: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Hi all,

I noticed that the existing description of the string translate()
function <>
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.


Attachment: func.sgml.patch
Description: application/octet-stream (1.1 KB)


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-2017 The PostgreSQL Global Development Group