Re: [GENERAL] import CSV file to a table - Mailing list pgsql-general

From Bret Stern
Subject Re: [GENERAL] import CSV file to a table
Date
Msg-id 1488992089.3126.8.camel@bret.machinemanagement.com
Whole thread Raw
In response to Re: [GENERAL] import CSV file to a table  (Karl Czajkowski <karlcz@isi.edu>)
List pgsql-general
I'll throw in.

If tab delimited is available, perhaps that option will work better...or..
use Access to find the violations of the quote comma delimited assumptions, then
export from Access an import

Bret


On Wed, 2017-03-08 at 08:36 -0800, Karl Czajkowski wrote:
I believe that in its fully glory, you cannot reliably locate CSV
record boundaries except by parsing each field in order including
quote processing.  Individual records may have arbitrary numbers of
field and record separator characters within the values.

Karl


On Mar 08, Rob Sargent modulated:
> Since bash has been bandied about in this thread I presume awk is
> available.  Here's how I would check just how 'csv'ish the incoming
> file is.
> ...



pgsql-general by date:

Previous
From: Karl Czajkowski
Date:
Subject: Re: [GENERAL] import CSV file to a table
Next
From: Rob Sargent
Date:
Subject: Re: [GENERAL] import CSV file to a table