Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BGuQE26713 for ; Mon, 11 Feb 2002 11:56:26 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1BGuSf07488; Mon, 11 Feb 2002 11:56:28 -0500 (EST) To: Simone Tellini cc: pgsql-admin@postgresql.org Subject: Re: restore whoes In-reply-to: <20020211164207.3A3A.TELLINI@areabusiness.it> References: <2198.1013408430@sss.pgh.pa.us> <200202111531.g1BFVfv11628@candle.pha.pa.us> <20020211164207.3A3A.TELLINI@areabusiness.it> Comments: In-reply-to Simone Tellini message dated "Mon, 11 Feb 2002 16:49:49 +0100" Date: Mon, 11 Feb 2002 11:56:28 -0500 Message-ID: <7485.1013446588@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/119 X-Sequence-Number: 3278 Simone Tellini writes: > err... probably I didn't make it clear, but the problem is that you > can't restore a database if you've got a text field containing CRLF > terminated text! Au contraire: it works fine ... so long as the COPY data hasn't been munged between being emitted and being reloaded. There's a thread in progress now on pghackers concerning whether we can't make COPY data files proof against Microsoftish newline translations, but until that happens, the rule is simple. Don't pass the data file through anything that thinks it's okay to reformat newlines. regards, tom lane