Re: [HACKERS] copy

From: jwieck(at)debis(dot)com (Jan Wieck)
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: sferac(at)bo(dot)nettuno(dot)it, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] copy
Date: 1998-11-27 18:56:03
Message-ID: m0zjT3k-000EBjC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it> writes:
> > I have a strange behavior while copying from a text file, I don't know
> > if this will be considered a bug or a feature.
> > Seems that COPY expects that last field is 20 char long and if it is
> > less than 20 it becomes crazy.
>
> I cannot replicate this bug with 6.4. What version are you using?

I can, but it isn't a bug! At least not one in the backend.

The file must contain CRLF at the end of a line instead of a
single LF.

The data is absolutely intact in the database including the
CR for those lines, where the second fields value is shorter
than 20 chars. It's just psql(1) who's output get's mangled
up.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-11-27 19:16:33 Re: [HACKERS] copy
Previous Message Vadim Mikheev 1998-11-27 18:39:09 Re: [HACKERS] DROPping tables with SERIALs