Re: COPY and duplicates

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: COPY and duplicates
Дата
Msg-id 20010713110128.A13973@wolff.to
обсуждение исходный текст
Ответ на COPY and duplicates  (Ryan Mahoney <ryan@paymentalliance.net>)
Ответы Re: COPY and duplicates  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
On Fri, Jul 13, 2001 at 09:40:24AM -0400,
  Ryan Mahoney <ryan@paymentalliance.net> wrote:
> Is it possible for the COPY command to warn about duplicate key violations
> (and not insert them...) but still proceed inserting the rows that do not
> cause a violation?  If not, what is the quickest way to deal with this problem?

You could copy the data into a temporary table and then insert just
run record from a set with the same key into the real table.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCH] To remove EXTEND INDEX
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Re: Backups WAS: 2 gig file size limit