Re: SQL COPY Command - Mailing list pgsql-novice

From Keith Worthington
Subject Re: SQL COPY Command
Date
Msg-id 20050427145822.M69004@narrowpathinc.com
Whole thread Raw
In response to SQL COPY Command  ("Van Ingen, Lane" <lvaningen@ESNCC.com>)
List 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 by date:

Previous
From: "Keith Worthington"
Date:
Subject: Re: SQL COPY Command
Next
From: Bruce Momjian
Date:
Subject: Re: Poor-man's enumeration type