Re: SQL COPY Command

Поиск
Список
Период
Сортировка
От Keith Worthington
Тема Re: SQL COPY Command
Дата
Msg-id 20050427145822.M69004@narrowpathinc.com
обсуждение исходный текст
Ответ на SQL COPY Command  ("Van Ingen, Lane" <lvaningen@ESNCC.com>)
Список pgsql-novice
On Wed, 27 Apr 2005 10:43:58 -0400, Van Ingen, Lane wrote
> Will this command APPEND TO or REPLACE data in an existing table ?
>
> The documentation doesn't seem to indicate.
>

You appear to be correct.  I was not able to find the answer in the
documentation either.

Testing indicates that the data will be appended.  If a primary key is defined
on the table and any of the contents of the COPY violate that key then the
entire contents of the COPY are rejected.  During large copies this can result
in a lot of wasted space.

Kind Regards,
Keith

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

Предыдущее
От: "Keith Worthington"
Дата:
Сообщение: Re: SQL COPY Command
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Poor-man's enumeration type