Bulk INSERT with individual failure

Поиск
Список
Период
Сортировка
От Robert James
Тема Bulk INSERT with individual failure
Дата
Msg-id CAGYyBgj79HfTp5HnA2zDusN8AEWocMNMbuOjW3BP8n0=QpdwmQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Bulk INSERT with individual failure
Список pgsql-general
I need to INSERT a large number of records.  For performance reasons,
I'd rather send them to Postgres in one giant INSERT.

However, if there's a problem in one record (eg one row doesn't meet a
constraint), I'd still like the others saved.  That is, I specifically
DO NOT want atomic behavior.  It's okay to silently drop bad data in
this case - I don't even need to know about it.

Is there any way to do this, or am I forced to but each record into
its own INSERT?


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Linux Distribution Preferences?
Следующее
От: Robert James
Дата:
Сообщение: INSERT... WHERE