Re: Problem with COPY in 8.0.3 - Mailing list pgsql-bugs

From Oliver Elphick
Subject Re: Problem with COPY in 8.0.3
Date
Msg-id 1129139037.6751.216.camel@linda.lfix.co.uk
Whole thread Raw
In response to Problem with COPY in 8.0.3  (Oliver Elphick <olly@bray-healthcare.com>)
List pgsql-bugs
On Wed, 2005-10-12 at 09:09 +0100, Oliver Elphick wrote:
> Pg 8.0.3 (Debian package) on AMD64, linux 2.6.12
>
> I am importing a table using COPY.  The data is tab-delimited.  COPY
> seems to be putting the data for one field into the preceding field,
> which should contain the empty string.

To follow up on this, there seems to be a general problem that COPY did
not use the same column order as a default display for this particular
table.  The table had just been created and had not been subjected to
alterations.

I got round the problem by specifying the column list to the COPY
command.

--
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html

pgsql-bugs by date:

Previous
From: "Karl O. Pinc"
Date:
Subject: BUG #1956: Plpgsql top-level DECLARE does not share scope with CREATE FUNCTION
Next
From: Tom Lane
Date:
Subject: Re: Problem with COPY in 8.0.3