Re: Can COPY update or skip existing records?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Can COPY update or skip existing records?
Дата
Msg-id dcc563d10809301930y1dcec1bx6499f8ca2bdba7c3@mail.gmail.com
обсуждение исходный текст
Ответ на Can COPY update or skip existing records?  ("Glenn Gillen" <glenn.gillen@gmail.com>)
Список pgsql-sql
On Tue, Sep 30, 2008 at 6:16 AM, Glenn Gillen <glenn.gillen@gmail.com> wrote:
> Hey all,
>
> I've got a table with a unique constraint across a few fields which I
> need to regularly import a batch of data into. Is there a way to do it
> with COPY without getting conflicts on the unique contraint? I have no
> was of being certain that some of the data I'm trying to load isn't in
> the table already.
>
> Ideally I'd like it to operate like MySQL's on_duplicate_key_update
> option, but for now I'll suffice with just ignoring existing rows and
> proceeding with everything else.

Look into pg_loader, I believe it has that capability.


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

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: Can COPY update or skip existing records?
Следующее
От: "Sestak, John S"
Дата:
Сообщение: Accessing elements of bytea[] always returns NULL