Re: COPY seems to work, but no data in the table

From: Lee Harr <missive(at)frontiernet(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY seems to work, but no data in the table
Date: 2002-07-17 02:31:27
Message-ID: ah2ktv$1a6f$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <20020716162506(dot)GB27614(at)klamath(dot)dyndns(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-07-17 03:18:17 Re: OIDs (Or: another RTFM question?)
Previous Message Joel Rees 2002-07-17 01:42:06 Re: OIDs (Or: another RTFM question?)