Re: COPY seems to work, but no data in the table - Mailing list pgsql-general

From Lee Harr
Subject Re: COPY seems to work, but no data in the table
Date
Msg-id ah2ktv$1a6f$1@news.hub.org
Whole thread Raw
In response to Re: COPY seems to work, but no data in the table  (nconway@klamath.dyndns.org (Neil Conway))
Responses Re: COPY seems to work, but no data in the table
List pgsql-general
In article <20020716162506.GB27614@klamath.dyndns.org>, Neil Conway wrote:
> On Mon, Jul 15, 2002 at 07:36:58PM -0700, Brian Dougherty wrote:
>> I executed a successful COPY, or at least psql responded "COPY", but
>> when I looked at the table with SELECT *, no rows were found.
>>
>> What's going on there?
>
> Can you give us a full example? For instance, the definition of the
> table, the command you're using to COPY in data, and a sample of
> the source data.
>


I have run in to the exact same problem (check in the archives...
"missing foreign key fails silently using COPY")

oh. Here is is:

http://archives.postgresql.org/pgsql-bugs/2002-02/msg00173.php

(you can view source if the page appears blank...)

What I found was that if a foreign key constraint was not satisfied
while COPYing data in to a table, the whole COPY would fail, but
there was never any error message.

As I recall it, Tom Lane looked at this problem at the time and said
that it would be less than simple to fix.



pgsql-general by date:

Previous
From: Joel Rees
Date:
Subject: Re: OIDs (Or: another RTFM question?)
Next
From: Bruce Momjian
Date:
Subject: Re: OIDs (Or: another RTFM question?)