X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 54818D1B257 for ; Fri, 28 May 2004 10:39:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 22820-05 for ; Fri, 28 May 2004 10:39:27 -0300 (ADT) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id C1C06D1B18C for ; Fri, 28 May 2004 10:39:21 -0300 (ADT) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1BThZz-000OPD-0b for pgsql-general@postgresql.org; Fri, 28 May 2004 14:39:23 +0100 Date: Fri, 28 May 2004 14:39:20 +0100 From: Paul Thomas To: "pgsql-general @ postgresql . org" Subject: Re: PostgreSQL delete the blank in the end of the String automatically. how can I avoid it? Message-ID: <20040528143920.A14794@bacon> References: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13>; from xier@in.tum.de on Fri, May 28, 2004 at 13:04:56 +0100 X-Mailer: Balsa 1.2.3 Lines: 35 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/857 X-Sequence-Number: 61291 On 28/05/2004 13:04 xier@in.tum.de wrote: > hello, > > my Name is Rong. I am student at TU-Munich. I have some questions for > Postgresql7.2 under SuSe Linux. > Postgresql7.2 under SuSe Linux8.0. > I use PostgreSQL7.2 with PGAdminII1.4.2 under Windows2000. > > I insert a String from Teleform6.0 of Cardiff through ODBC in table of > PostgreSQL. > There should be some blank in the End of the String. e.g: "data > " > But there ist no blank in the end of the String in the table. e.g: "data" > It means, that PostgreSQL delete the blank in the end of the String > automatically. > But I need the blank in the end of the String. > how can I avoid it? AFAICT, it's not PostgreSQL which is causing your problem. I've just tested against 7.2.1 using psql and it does _not_ remove trailing spaces. I think your problem is with your client code. HTH BTW, 7.2 is very old. I'd recommend upgrading. -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+