Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tim McAuley <mcauleyt(at)tcd(dot)ie>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)
Date: 2003-09-26 19:57:17
Message-ID: 200309261957.h8QJvHf01519@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

scott.marlowe wrote:
> > OK, 'vi' shows it as:
> >
> > COPY people2 (id, persons) FROM stdin;
> > 59 Chance Terry--S
> > 60 ^M
> > \.
> >
> > which is _exactly the case the error was supposed to catch. Now, the
> > big question is where did this dump come from? Pg version? OS platform?
>
> The originating system is a RedHat 7.2 box with postgresql 7.2.x running
> on it.
>
> The destination system is a RedHat 7.2 box with postgresql 7.4 beta3
> running on it.
>
> The data likely came out of a (gasp, horrors) windows box.

OK, try this on your 7.2:

test=> create table test(x text);
CREATE TABLE
test=> insert into test values ('\r');
INSERT 17158 1
test=> copy test to '/tmp/out';
COPY

Then 'vi' /tmp/out. It should show \r, not ^M. Please report back.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Meskes 2003-09-26 19:59:00 Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)
Previous Message Jeremiah Elliott 2003-09-26 19:48:55 Re: Schema backup

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2003-09-26 19:59:00 Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)
Previous Message Andrew Sullivan 2003-09-26 19:44:35 Re: 2-phase commit

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Meskes 2003-09-26 19:59:00 Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)
Previous Message Bruce Momjian 2003-09-26 19:44:08 Re: initdb failure (was Re: [GENERAL] sequence's plpgsql)