Tim Uckun wrote:

Is there a command like COPY which will insert the data but skip all
triggers and optionally integrity checks.


I'm curious if it would be worth COPYing the data into dummy tables with no constraints, and then using INSERT INTO ... SELECT statements to feed from those tables into the real ones, which would check constraints and such but as a set.

I've done it that way in SQL Server before, but I'm much less experienced with PostgreSQL.


-- Stephen Cook

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to