pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Simone Tellini <tellini@areabusiness.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: restore whoes
Date: Mon, 11 Feb 2002 10:35:39 -0800 (PST)
Message-ID: <20020211103050.D81764-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020211184150.3A40.TELLINI@areabusiness.it>

On Mon, 11 Feb 2002, Simone Tellini wrote:

>
> On Mon, 11 Feb 2002 11:56:28 -0500
> Tom Lane <tgl@sss.pgh.pa.us> 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




view thread (30+ messages)  latest in thread

Message-ID: <20020211103050.D81764-100000@megazone23.bigpanda.com>
Permalink:  ../20020211103050.D81764-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020211103050.D81764-100000@megazone23.bigpanda.com

 · 

reply

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: sszabo@megazone23.bigpanda.com, tellini@areabusiness.it
  Subject: Re: restore whoes
  In-Reply-To: <20020211103050.D81764-100000@megazone23.bigpanda.com>
  References: <20020211184150.3A40.TELLINI@areabusiness.it> <20020211103050.D81764-100000@megazone23.bigpanda.com>

* 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