Re: Best import approach? Delimiters in strings

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Andrew Taylor <andydtaylor(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Best import approach? Delimiters in strings
Date: 2013-02-16 17:22:31
Message-ID: 511FC057.3090503@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/16/2013 09:02 AM, Andrew Taylor wrote:
> Hi,
>
> A bulk import (script attached) is failing.
>
> Error message:
> psql:/home/andyt/projects/django-stringer/txc/stops_inport.txt:86:
> ERROR: invalid input syntax for type double precision: "stop_lat"
>
> I think the reason may be a delimiters in strings such as "Golders
> Green, Golders Green, stop GW"
>
> 490015496GW,"Golders Green, Golders Green, stop GW",,51.57207,-0.19549
>
> What's a good way to handle this?

What is the command string you are using to import the data?

>
> Thanks,
>
>
> Andy
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bret Stern 2013-02-16 17:28:49 Re: Best import approach? Delimiters in strings
Previous Message Andrew Taylor 2013-02-16 17:02:29 Best import approach? Delimiters in strings