Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLTSj-0007x8-PD for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 14:42:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLTSh-00019Z-KW for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 14:42:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLTSh-00019R-9i for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 14:42:39 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLTSa-000523-Bm for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 14:42:38 +0000 Received: from [188.174.90.6] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1iLTSX-0008NQ-JC; Fri, 18 Oct 2019 16:42:29 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id x9IEgRTd003128 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Oct 2019 16:42:28 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id x9IEgQ3H003127; Fri, 18 Oct 2019 16:42:26 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 18 Oct 2019 16:42:26 +0200 From: Matthias Apitz To: Tom Lane Cc: pgsql-general@lists.postgresql.org Subject: Re: DBD::Pg exorts char columns with trailing blanks Message-ID: <20191018144226.GA2930@c720-r342378> Reply-To: Matthias Apitz References: <80o3yg.pzkkx1.2uoaif-qmf@ms-10.1blu.de> <29389.1571403718@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <29389.1571403718@sss.pgh.pa.us> X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.90.6 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día viernes, octubre 18, 2019 a las 03:01:58p. m. +0200, Tom Lane escribió: > Matthias Apitz writes: > > When we export char columns with our Perl tools, they come out with trailing blanks (in Sybase they don't). Can this be suppressed? > > Switch to varchar, perhaps? > > regards, tom lane Sometimes people does not know, what they propose. We have a historical 25 years grown ILS which runs on top of Sybase, Oracle, Informix ... and should now be ported to PostgreSQL. We can't simple switch internal table structures and adopt some 10.000.000 lines of code (or debug while it is now crashing). Thanks anyway. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub 3. Oktober! Wir gratulieren! Der Berliner Fernsehturm wird 50 aus: https://www.jungewelt.de/2019/10-02/index.php