Re: psql \copy command runs as a transcation?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql \copy command runs as a transcation?
Дата
Msg-id 9811.1188254461@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql \copy command runs as a transcation?  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: psql \copy command runs as a transcation?
Список pgsql-general
Ow Mun Heng <Ow.Mun.Heng@wdc.com> writes:
> Does the psql's \copy command run as a transaction?

Certainly.

> I think it does, but
> somehow when I cancel (in a script) a running import, "seems" (I can't
> seem to duplicate it on the cli though) like a few lines/rows gets
> inserted anyway..

Hmm.  Some client-side software is written to split an import into
multiple short copy commands, but I don't believe there's any such thing
in psql.  Are you sure those rows didn't come from someplace else?

            regards, tom lane

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

Предыдущее
От: Jessie
Дата:
Сообщение: Npgsql GUI problem C#.net
Следующее
От: Sanjay
Дата:
Сообщение: Creating indices on foreign keys