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

From: Denis BUCHER <dbucherml(at)hsolutions(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Best way to import data in postgresl (not "COPY")
Date: 2009-07-22 18:24:22
Message-ID: 4A675956.5090003@hsolutions.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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...

Does someone has a better suggestion ?

Thanks a lot in advance !

Denis

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2009-07-22 18:37:41 Re: Can LIKE under utf8 use INDEXes?
Previous Message Alvaro Herrera 2009-07-22 17:18:46 Re: psql \du [PATCH] extended \du with [+] - was missing