Re: Does copy abort on a failed insertion?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Does copy abort on a failed insertion?
Дата
Msg-id 1128023522.29347.58.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Does copy abort on a failed insertion?  ("Reid Thompson" <Reid.Thompson@ateb.com>)
Список pgsql-general
On Thu, 2005-09-29 at 14:28, Reid Thompson wrote:
> If i have a pg_dump that is using COPY, and midway through the copy an
> insert fails due to a unique constraint, will the COPY continue with the
> rest of the records, or will it abort?  If it aborts, will it perform a
> rollback on the inserts up to that point?

Copies are all or nothing.  Either the whole set gets inserted or none
of it.

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

Предыдущее
От: jeff sacksteder
Дата:
Сообщение: security documentation
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: DBI/DBD::Pg mem. use goes exponential