Re: restore whoes

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simone Tellini <tellini(at)areabusiness(dot)it>, pgsql-admin(at)postgresql(dot)org
Subject: Re: restore whoes
Date: 2002-02-11 05:25:20
Message-ID: 200202110525.g1B5PLa28818@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> Simone Tellini <tellini(at)areabusiness(dot)it> writes:
> > here's a bit of data: the \connect you can see is at line 94382
>
> Okay, the problem with this file is fairly obvious after looking at it
> with od -c:
>
> 00000d0 \n \r \n \ c o n n e c t - p o
> 00000e0 s t g r e s \r \n C O P Y " i n
> 00000f0 t e r r o g a z i o n i " F
> 0000100 R O M s t d i n ; \r \n 9 7 \t 2
> 0000110 0 0 0 0 5 1 2 \t B a n c a I n
> 0000120 t e s a e C e n t r o C o
> 0000130 n t a b i l e C o m i t d i
> 0000140 P a r m a \t 4 \t V E R B A L E
> 0000150 D E L C O N S I G L I O C
> 0000160 O M U N A L E \r \ \r \n S E D U
> 0000170 T A D E L 1 2 M A G G I O

I think we should throw a very specific error from COPY when it sees \r
ending a line. Comments?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-02-11 05:31:14 Re: restore whoes
Previous Message Stephan Szabo 2002-02-11 02:34:18 Re: user to database restriction?