Re: [GENERAL] Best way to import data in postgresl (not "COPY")

2009-07-24 Thread Denis BUCHER
Hello everyone, Denis BUCHER a écrit : > 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 > }

Re: [GENERAL] Best way to import data in postgresl (not "COPY")

2009-07-22 Thread Sam Mason
On Wed, Jul 22, 2009 at 08:24:22PM +0200, Denis BUCHER wrote: > SELECT ... FROM ODBC source > foreach row { > INSERT INTO postgresql > } > > The problem is that this method is very slow... > > Does someone has a better suggestion ? Using COPY[1] is normally the preferred solution to getting data

Re: [GENERAL] Best way to import data in postgresl (not "COPY")

2009-07-22 Thread Andy Colson
Denis BUCHER wrote: 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 me

[GENERAL] Best way to import data in postgresl (not "COPY")

2009-07-22 Thread Denis BUCHER
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...