Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BIZdE72330 for ; Mon, 11 Feb 2002 13:35:39 -0500 (EST) (envelope-from sszabo@megazone23.bigpanda.com) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 3CF02D5FC; Mon, 11 Feb 2002 10:35:39 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 327435BF8; Mon, 11 Feb 2002 10:35:39 -0800 (PST) Date: Mon, 11 Feb 2002 10:35:39 -0800 (PST) From: Stephan Szabo To: Simone Tellini Cc: Subject: Re: restore whoes In-Reply-To: <20020211184150.3A40.TELLINI@areabusiness.it> Message-ID: <20020211103050.D81764-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200202/124 X-Sequence-Number: 3283 On Mon, 11 Feb 2002, Simone Tellini wrote: > > On Mon, 11 Feb 2002 11:56:28 -0500 > Tom Lane wrote: > > TL> > err... probably I didn't make it clear, but the problem is that you > TL> > can't restore a database if you've got a text field containing CRLF > TL> > terminated text! > TL> Au contraire: it works fine ... so long as the COPY data hasn't been > TL> munged between being emitted and being reloaded. > > no, it doesn't. > > I'll repeat myself: I've dumped the database on 7.1.3 and tried to > restore it with 7.2 on the same Linux machine without modifying the dump. > It didn't work at all. I just did a test on a debian machine from 7.1.3 to 7.2 with CRLF included text with no apparent problems. There must be something more to it that that. create table a(a text); insert into a values ('abc\015\012abc'); insert into a values ('abc\015\012'); insert into a values ('\015\012'); insert into a values ('\015\012abc'); insert into a values ('\015\012'); insert into a values ('\015'); insert into a values ('abc\015'); - dump and restore then worked properly for the database containing this table including restoring the CRs and LFs afaics