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.92) (envelope-from ) id 1j98tj-0006oA-5E for pgsql-general@arkaria.postgresql.org; Tue, 03 Mar 2020 14:51:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j98th-0006MD-V6 for pgsql-general@arkaria.postgresql.org; Tue, 03 Mar 2020 14:51:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j98th-0006M6-IQ for pgsql-general@lists.postgresql.org; Tue, 03 Mar 2020 14:51:49 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j98te-0000gX-P5 for pgsql-general@lists.postgresql.org; Tue, 03 Mar 2020 14:51:48 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1j98tW-0004tQ-T1; Tue, 03 Mar 2020 15:51:39 +0100 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.90_1) (envelope-from ) id 1j98tW-0004xD-PW; Tue, 03 Mar 2020 15:51:38 +0100 Date: Tue, 3 Mar 2020 15:51:38 +0100 From: Matthias Apitz To: Tom Lane Cc: pgsql-general@lists.postgresql.org Subject: Re: Perl::DBI and TYPE of column Message-ID: <20200303145138.GA17746@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20200303140225.GA26410@sh4-5.1blu.de> <32382.1583246192@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: <32382.1583246192@sss.pgh.pa.us> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día Dienstag, März 03, 2020 a las 09:36:32 -0500, Tom Lane escribió: > Matthias Apitz writes: > > During unload trailing blanks in all columns are discarded, because they > > would cause problems during loading for INT and DATE columns. > > Really? > > regression=# select '123 '::int; > int4 > ------ > 123 > (1 row) > > regression=# select '12-02-2019 '::date; > date > ------------ > 2019-12-02 > (1 row) The problem occurs when loading CSV data like ...| |... into an INT column with COPY. I could make you an exact example. But this wasn't my question, my question is where the document is. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub