Re: COPY formatting - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: COPY formatting
Date
Msg-id 405A25F3.50108@dunslane.net
Whole thread Raw
In response to Re: COPY formatting  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers

Joshua D. Drake wrote:

>>
>> And, BTW, I deal with CSV *all the time* for my insurance clients, 
>> and I can tell you that that format hasn't changed in 20 years.   We 
>> can hard-code it if it's easier.
>
>
> Well many of my clients consider CSV "Character Separated Value" not 
> Comma... Thus I get data like this:
>
> "Hello","Good Bye"
> Hello    Good Bye
> Hello,Good Bye
> "This", "They're"
> This    They're
> "This"    "Is"    "A"    1


*nod* I too have seen these and other variants over the years, including 
some that use single quote instead of double quote as the quote char, 
and \ as the escape char.

My suggested scheme for beefing up COPY was made with all these variants 
in mind.

cheers

andrew



pgsql-hackers by date:

Previous
From: Jonathan Gardner
Date:
Subject: Bug in CVS HEAD on bootparse.y???
Next
From: Fabien COELHO
Date:
Subject: Re: Further thoughts about warning for costly FK checks