Re: ignore duplicate key while using COPY?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: ignore duplicate key while using COPY?
Дата
Msg-id 201112190619.22108.adrian.klaver@gmail.com
обсуждение исходный текст
Ответ на ignore duplicate key while using COPY?  (Yan Chunlu <springrider@gmail.com>)
Ответы Re: ignore duplicate key while using COPY?
Список pgsql-general
On Sunday, December 18, 2011 10:54:21 pm Yan Chunlu wrote:
> I am using COPY public.table_name FROM STDIN  to import data.  it is
> very efficient, but if there's any duplicate key exists, the whole
> procedure has been stopped.  is there anyway to around this?
>
> why does not postgresql just give a warning and continue the copy?

Take a look at pgloader:
http://pgfoundry.org/projects/pgloader/

--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: "Marc Mamin"
Дата:
Сообщение: consecutive analyze calls with different column lists.
Следующее
От: David Johnston
Дата:
Сообщение: Fwd: consecutive analyze calls with different column lists.