From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simone Tellini <tellini@areabusiness.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: restore whoes
Date: Mon, 11 Feb 2002 11:56:28 -0500
Message-ID: <7485.1013446588@sss.pgh.pa.us> (raw)
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>
Simone Tellini <tellini@areabusiness.it> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, tellini@areabusiness.it
Subject: Re: restore whoes
In-Reply-To: <7485.1013446588@sss.pgh.pa.us>
References: <2198.1013408430@sss.pgh.pa.us> <200202111531.g1BFVfv11628@candle.pha.pa.us> <20020211164207.3A3A.TELLINI@areabusiness.it> <7485.1013446588@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox