Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9F464B5DC01 for ; Thu, 30 Jun 2011 16:44:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 07610-01-10 for ; Thu, 30 Jun 2011 19:43:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 98613B5DFB7 for ; Thu, 30 Jun 2011 16:28:48 -0300 (ADT) Received: (qmail invoked by alias); 30 Jun 2011 19:28:46 -0000 Received: from p57A5CDAD.dip.t-dialin.net (EHLO [192.168.1.113]) [87.165.205.173] by mail.gmx.net (mp056) with SMTP; 30 Jun 2011 21:28:46 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX19gmdMWpeNgCQ6qpP+oa1GQFb9yqLHGC0sTNfrJ11 i5JCcRRXgmNAQB Message-ID: <4E0CCE6F.70001@gmx.net> Date: Thu, 30 Jun 2011 21:28:47 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: How to remove a set of characters in text-columns ? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201106/100 X-Sequence-Number: 35566 Hi, how can I remove a set of characters in text-columns ? Say I'd like to remove { } ( ) ' " , ; . : ! Of course I can chain replace ( replace ( replace ( replace ( ... , '' ) .... and replace the chars one by one against an empty string ''. There might be a more elegant way. Is there ? regards