Best way to import data in postgresl (not "COPY") - Mailing list pgsql-odbc

From Denis BUCHER
Subject Best way to import data in postgresl (not "COPY")
Date
Msg-id 4A675AF6.2070406@hsolutions.ch
Whole thread Raw
Responses Re: Best way to import data in postgresl (not "COPY")
Re: Best way to import data in postgresl (not "COPY")
List pgsql-odbc
Hello,

I have a system that must each day import lots of data from another one.
Our system is in postgresql and we connect to the other via ODBC.

Currently we do something like :

SELECT ... FROM ODBC source
foreach row {
INSERT INTO postgresql
}

The problem is that this method is very slow...

More especially that for each row we do :
field1 = ...
field2 = ...
And then
$sql_insert = "INSERT ..." . field1 ....


Does someone has a better suggestion ?

Thanks a lot in advance !

Denis

pgsql-odbc by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Release Version 08.04.0100
Next
From: "Preeti Khurana"
Date:
Subject: Config file used for UseDeclareFetch option