Re: Apparent Problem With NULL in Restoring pg_dump

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Apparent Problem With NULL in Restoring pg_dump
Date: 2011-09-15 20:22:43
Message-ID: 4E725E93.5020308@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/15/2011 3:17 PM, Rich Shepard wrote:
> On Thu, 15 Sep 2011, Alban Hertroys wrote:
>
>> You appear to have two tabs after "Depth to Water", which would be one
>> too many.
>
> Alban,
>
> I thought that I had caught all the double tabs. Thanks for seeing this
> one.
>
> Now I'm back to the tabs-in-real-columns issue:
>
> ERROR: invalid input syntax for type real: " "
> CONTEXT: COPY chemistry, line 47364, column quant: " "
>
> and here's the referenced line:
>
> \N GW-22 2004-12-17 Calcium 9.69999981 mg/L
> \N \N \N \N
>
> Removing the extra tab between 'Calcium' and 9.69999981 produces:
>
> ERROR: invalid input syntax for type numeric: "N N"
> CONTEXT: COPY chemistry, line 47364, column northing: "N N"
>
> There must be a better way to clean this table, but I don't know what it
> is.
>
> Thanks again,
>
> Rich
>

Yeah... I think your emacs foo messed up the file. You should have used
VIM!

just kidding... had to be done :-)

-Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2011-09-15 20:25:12 Re: Apparent Problem With NULL in Restoring pg_dump
Previous Message Andy Colson 2011-09-15 20:21:12 Re: Apparent Problem With NULL in Restoring pg_dump