Re: long transaction - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: long transaction
Date
Msg-id b42b73150808120956ie421dbcl2c24d486c8793eb9@mail.gmail.com
Whole thread Raw
In response to Re: long transaction  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
List pgsql-performance
On Tue, Aug 12, 2008 at 4:17 AM, Sabin Coanda
<sabin.coanda@deuromedia.ro> wrote:
>> long running transactions can be evil. is there a reason why this has
>> to run in a single transaction?
>
> This single transaction is used to import new information in a database. I
> need it because the database cannot be disconected from the users, and the
> whole new data has to be consistently. There are different constraints that
> are checked during the import.

have you considered importing to a temporary 'holding' table with
copy, then doing 'big' sql statements on it to check constraints, etc?

merlin

pgsql-performance by date:

Previous
From: Mark Mielke
Date:
Subject: Re: Using PK value as a String
Next
From: "H. Hall"
Date:
Subject: Re: Using PK value as a String