Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9009EB5D944 for ; Thu, 30 Jun 2011 23:43:11 -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 97373-02 for ; Fri, 1 Jul 2011 02:43:05 +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.23]) by mail.postgresql.org (Postfix) with SMTP id 8C5F3B5DBD6 for ; Thu, 30 Jun 2011 23:43:04 -0300 (ADT) Received: (qmail invoked by alias); 01 Jul 2011 02:43:03 -0000 Received: from p57A5CDAD.dip.t-dialin.net (EHLO [192.168.1.113]) [87.165.205.173] by mail.gmx.net (mp007) with SMTP; 01 Jul 2011 04:43:03 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX1+N9yUxwnaNh7DtzXfZgPYdIVSN7z9AbYaa5dULrQ RDIWWi4lD2OKcT Message-ID: <4E0D3438.2060200@gmx.net> Date: Fri, 01 Jul 2011 04:43:04 +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: Re: How to remove a set of characters in text-columns ? References: <4E0CCE6F.70001@gmx.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; 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/104 X-Sequence-Number: 35570 Am 01.07.2011 04:17, schrieb Tim Landscheidt: > besides the regexp_replace() solution mentioned by Charlie > and Steve, you can also use TRANSLATE(): > > | tim=# SELECT TRANSLATE('a{b''c"d!f', '{}()''",;.:!', ''); nice, 2 solutions for 1 problem. :) my replace...replace... was a wee bit tedious ;) thanks a lot to you, Charlie and Steve :) regards Andreas