Re: [SQL] Slow Inserts Again - Mailing list pgsql-sql

From Vadim Mikheev
Subject Re: [SQL] Slow Inserts Again
Date
Msg-id 372DA49B.C25EDDD6@krs.ru
Whole thread Raw
In response to Slow Inserts Again  ("Frank Morton" <fmorton@base2inc.com>)
List pgsql-sql
Frank Morton wrote:
> 
> This last attempt, I bracket each insert statement with                              ^^^^^^^^^^^^^^^^^^^^^
> "begin;" and "end;".

Why _each_?
Enclose ALL statements by begin; & end; to insert ALL data
in SINGLE transaction:

begin;
insert ....;
insert ....;
...
insert ....;
end;

Vadim


pgsql-sql by date:

Previous
From: Joerg Fischer
Date:
Subject: No DIVIDE Operator
Next
From: "Frank Morton"
Date:
Subject: Re: [SQL] Slow Inserts Again