Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D70E18B63D8 for ; Wed, 20 Jun 2012 11:42:36 -0300 (ADT) Received: from oldperseverance.encs.concordia.ca ([132.205.96.94]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ShM78-0007FX-07 for pgsql-sql@postgresql.org; Wed, 20 Jun 2012 14:42:35 +0000 Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by oldperseverance.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id q5KEgIZ2001546 for ; Wed, 20 Jun 2012 10:42:19 -0400 Message-ID: <4FE1E14A.8060603@encs.concordia.ca> Date: Wed, 20 Jun 2012 10:42:18 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Simple method to format a string Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2012/06/20 10:42:19 EDT X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/58 X-Sequence-Number: 36712 Good morning, Is there a simply method in psql to format a string? For example, adding a space to every three consecutive letters: abcdefgh -> *** *** *** Thanks a lot! Emi