Re: How import big amounts of data? - Mailing list pgsql-performance

From Dennis Bjorklund
Subject Re: How import big amounts of data?
Date
Msg-id Pine.LNX.4.44.0512291237340.14848-100000@zigo.dhs.org
Whole thread Raw
In response to How import big amounts of data?  (Arnau <arnaulist@andromeiberica.com>)
List pgsql-performance
On Thu, 29 Dec 2005, Arnau wrote:

>    Which is the best way to import data to tables? I have to import
> 90000 rows into a column and doing it as inserts takes ages. Would be
> faster with copy? is there any other alternative to insert/copy?

Wrap the inserts inside a BEGIN/COMMIT block and it will be a lot faster.
Copy is even faster, but for just 90000 rows I wouldn't bother.

--
/Dennis Björklund


pgsql-performance by date:

Previous
From: "Steinar H. Gunderson"
Date:
Subject: Re: How import big amounts of data?
Next
From: Ron
Date:
Subject: Re: How import big amounts of data?