import ignoring duplicates

Поиск
Список
Период
Сортировка
От Mark Fenbers
Тема import ignoring duplicates
Дата
Msg-id 4BF03B89.9020908@noaa.gov
обсуждение исходный текст
Ответы Re: import ignoring duplicates  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-sql
I am using psql's \copy command to add records to a database from a
file.  The file has over 100,000 lines.  Occasionally, there is a
duplicate, and the import ceases and an internal rollback is performed.
In other words, no data is imported even if the first error occurs near
the end of the file.

I am looking for an option/switch to tell psql (or the \copy command) to
skip over any duplicate key constraint viloations and continue to load
any data that doesn't violate a duplicate key constraint.  Is there such
an option?

Mark

Вложения

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

Предыдущее
От: "Little, Douglas"
Дата:
Сообщение: Re: Postgresql database
Следующее
От: Tim Landscheidt
Дата:
Сообщение: Re: import ignoring duplicates