Re: PostgreSQL Write Performance

From: Stephen Cook <sclists(at)gmail(dot)com>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Write Performance
Date: 2010-01-06 06:50:01
Message-ID: 4B443299.5010909@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dann Corbit 2010-01-06 07:05:36 Re: PostgreSQL Write Performance
Previous Message Yan Cheng Cheok 2010-01-06 06:29:30 Re: PostgreSQL Write Performance