Re: Problems importing csv files - Mailing list pgsql-novice

From Tim Ryan
Subject Re: Problems importing csv files
Date
Msg-id CFF6C277-AFCD-4CD5-BF25-F95A2AD8C5F2@gmail.com
Whole thread Raw
In response to Re: Problems importing csv files  (Robert Schnabel <schnabelr@missouri.edu>)
List pgsql-novice


On Jun 22, 2009, at 19:29, Robert Schnabel <schnabelr@missouri.edu> wrote:


Kindra Martinenko wrote:

I tried:

COPY BaxterCommercial 
FROM E'H:\\transpor\\Traffic Counts\\TMS\\MarApr09\\BaxterCommercial.csv'
WITH CSV;

And it returned with this error:


ERROR:  relation "baxtercommercial" does not exist

Any ideas?
I'm by no stretch an expert, I'd consider myself a novice, but I ran into the same problem when I started.  I assume you're using Windows right?  Does your table name contain uppercase the way you have it written above?  If it does, try changing the table name to all lowercase and change your COPY statement to lowercase.  That's what worked for me.  Scroll to the bottom of this link http://www.postgresql.org/docs/8.0/interactive/ddl.html  I have resorted to just making sure all of my table names are lowercase.

pgsql-novice by date:

Previous
From: Bhushan Verma
Date:
Subject: Re: [BUGS] psql: FATAL: the database system is in recovery mode
Next
From: Tim Ryan
Date:
Subject: Re: Problems importing csv files