Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A84069FB929; Wed, 11 Jul 2007 09:15:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 10225-06-3; Wed, 11 Jul 2007 09:14:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from fepkx2.vip.hr (fegkx2.vip.hr [212.91.98.72]) by postgresql.org (Postfix) with ESMTP id 355A59FBCA6; Wed, 11 Jul 2007 09:15:03 -0300 (ADT) Received: from zlatkovyfkpgz6 ([212.15.184.155]) by fepkx2.vip.hr with SMTP id <20070711121455.JZK39814.fepkx2.vip.hr@zlatkovyfkpgz6>; Wed, 11 Jul 2007 14:14:55 +0200 Message-ID: <001301c7c3b5$1ccb4950$9bb80fd4@zlatkovyfkpgz6> From: "Zlatko Matic" To: , "Postgres General" References: <469320CA.9080406@shaw.ca> <5288.1184094554@sss.pgh.pa.us> Subject: odbc parameters Date: Wed, 11 Jul 2007 14:15:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/471 X-Sequence-Number: 117072 Hello, I use MS Access for data import. Access imports csv file, make some calculation and transffers data to PostgreSQL. Unfortunately, it takes a lot of time to transfer data to PostgreSQL. My odbc settings are following: [ODBC] DRIVER=PostgreSQL Unicode UID=postgres XaOpt=1 LowerCaseIdentifier=0 UseServerSidePrepare=1 ByteaAsLongVarBinary=0 BI=0 TrueIsMinus1=0 DisallowPremature=1 UpdatableCursors=1 LFConversion=1 ExtraSysTablePrefixes=dd_ CancelAsFreeStmt=0 Parse=1 BoolsAsChar=0 UnknownsAsLongVarchar=0 TextAsLongVarchar=1 UseDeclareFetch=0 Ksqo=1 Optimizer=1 CommLog=0 Debug=0 MaxLongVarcharSize=8190 MaxVarcharSize=255 UnknownSizes=0 Socket=4096 Fetch=100 ConnSettings= ShowSystemTables=0 RowVersioning=1 ShowOidColumn=0 FakeOidIndex=0 Protocol=7.4-1 ReadOnly=0 SSLmode=allow PORT=5432 SERVER=localhost DATABASE=PLANINGZ Could you suggest what parameters values would yield best performance for batch import to PostgreSQL? Thanks.