From: Aaron Bono <postgresql@aranya.com>
To: Sumeet <asumeet@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Importing data from csv
Date: Sun, 27 Aug 2006 23:14:37 -0500
Message-ID: <bf05e51c0608272114g44476251vf38678883ed71a16@mail.gmail.com> (raw)
In-Reply-To: <7539aebb0608240747j6da083b2i3e1f380124504955@mail.gmail.com>
References: <7539aebb0608240747j6da083b2i3e1f380124504955@mail.gmail.com>
On 8/24/06, Sumeet <asumeet@gmail.com> wrote:
>
> Hi Folks,
>
> sorry if this is a duplicate post, i've been tryin to find a solution of
> importing data into postgres from a csv file. The problem is, I have a
> database which consists of columns which contain newline characters (mac and
> unix). now when i export these files to a csv format, there are some line
> breaks (mixed unix and mac) in the data which breaks the copy procedure.
>
Sounds like you are checking the file in as binary when it should be checked
in as ASCII. You may want to consider changing that in your repository so
this does not continue to be an issue.
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.comhttp://codeelixir.com
==================================================================
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@aranya.com, asumeet@gmail.com
Subject: Re: Importing data from csv
In-Reply-To: <bf05e51c0608272114g44476251vf38678883ed71a16@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox