Re: A question about constraints.

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: A question about constraints.
Дата
Msg-id 20011214134303.V46676-100000@zoraida.natserv.net
обсуждение исходный текст
Ответ на A question about constraints.  (Stephen Ingram <ingram@samsix.com>)
Ответы Re: A question about constraints.  (Stephen Ingram <ingram@samsix.com>)
Список pgsql-novice
On Fri, 14 Dec 2001, Stephen Ingram wrote:
> Indeed, the constraint works:
>
> COPY OnMap FROM '/data/OnMap.dump' USING DELIMITERS '|'
>
> psql:OnMap:1: ERROR:  objid_check1 referential integrity violation - key referenced
>  from onmap not found in object
>
> But... is there anyway to get PostgreSQL to tell me which record or records
> are failing to load ?

I believe the copy command tells you the record that it is having problems
with. In your example above it seems the problem occurred in the very
first record. So far every time I have had problems with copy it reported
the line that it had the problems with.


В списке pgsql-novice по дате отправления:

Предыдущее
От: Leandro Fanzone
Дата:
Сообщение: Re: Multiple IN
Следующее
От: Stephen Ingram
Дата:
Сообщение: Re: A question about constraints.