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

Поиск
Список
Период
Сортировка
От Lee Harr
Тема Re: COPY seems to work, but no data in the table
Дата
Msg-id ah2ktv$1a6f$1@news.hub.org
обсуждение исходный текст
Ответ на Re: COPY seems to work, but no data in the table  (nconway@klamath.dyndns.org (Neil Conway))
Ответы Re: COPY seems to work, but no data in the table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Joel Rees
Дата:
Сообщение: Re: OIDs (Or: another RTFM question?)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: OIDs (Or: another RTFM question?)