Re: Import CSV date issues

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Sarfraz Nawaz <sarfraz(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Import CSV date issues
Date: 2013-03-04 14:47:21
Message-ID: CAHyXU0wKjFdJX2KSvaC+n4ZDnA0dJ=QPcQ2Or=KrkSGgF-1e0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, Mar 3, 2013 at 2:48 PM, Sarfraz Nawaz <sarfraz(at)gmail(dot)com> wrote:
> Tom you are a legend! There were invisible characters at the start of
> the file which were not being shown with "head" and "cat". Removing
> them fixed the issue and copy worked like a charm. Thank you!

yup -- many utilities (especially on windows) are aware of BOM and
will suppress it. hexdump is a good way to catch it out. Ideally you
can disable BOM creation on whatever is producing your csv.

merlin

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Joseph Pravato 2013-03-04 17:01:32 Re: PostgreSQL Query Speed Issues
Previous Message Sarfraz Nawaz 2013-03-03 20:48:26 Re: Import CSV date issues