X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5F5BDD8AD7 for ; Thu, 8 Sep 2005 19:07:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39912-08 for ; Thu, 8 Sep 2005 22:07:23 +0000 (GMT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id 45F21D8AAC for ; Thu, 8 Sep 2005 19:07:20 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1EDUSo-0004at-5Q for pgsql-odbc@postgresql.org; Thu, 08 Sep 2005 22:01:46 +0000 Received: from 192.168.1.106 ([192.168.1.106]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Thu, 8 Sep 2005 22:07:23 +0000 From: "Dave Page" To: , Cc: Subject: Re: ODBC Driver Failure- MS Access- Large record volume Message-ID: <00ab01c5b4c1$b07dd8ab$6a01a8c0@valehousing.co.uk> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 8 Sep 2005 23:07:17 +0100 MIME-Version: 1.0 thread-topic: [ODBC] ODBC Driver Failure- MS Access- Large record volume thread-index: AcW0wbB9KyX62CYLSzWlvqzdcMpdWA== X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.585 required=5 tests=[AWL=-1.491, MSGID_DOLLARS=3.076] X-Spam-Level: * X-Archive-Number: 200509/107 X-Sequence-Number: 6005 -----Original Message----- From: "Greg Campbell" Sent: 08/09/05 22:36:16 To: "Robin Weber" Cc: "pgsql-odbc@postgresql.org" Subject: Re: [ODBC] ODBC Driver Failure- MS Access- Large record volume > By the way other list memebers, after=20 > installation is there a recommended way to > determine the pgODBC driver version? Look at the version column on the Drivers tab in the driver manager. FWIW, there have been a number of leaks fixed in the recent libpq = snapshots. It would be worth trying 08.01.0003 (which has a temporary = name, so DSN changes will be required from non-libpq versions). Regards, Dave Regards, Dave -----Unmodified Original Message----- Hello and welcome Robin, I find the key to getting help is giving enough information. You might answer a few questions. 1. What version of the ODBC driver are you using? (I found my version = using REGEDIT to key=20 HKEY_CURRENT_USER\Software\Microsoft\Installer\Products) 2. What version of Access are you using? 3. What Access library are you using -DAO or ADO? 4. Since Access is typically interactive, how are you transacting these = millions of records, reading a=20 file or is some external device driving Access? 5. Are you connecting though the Access objects (normal queries and = tables), or using pass-through? 6. What version of Postgres server are you using? Linux or Windows? 7. Is logging turned on at the server? (e.g. pg_ctl start -l my_pg.log) By the way other list memebers, after installation is there a = recommended way to determine the pgODBC=20 driver version? Robin, Before knowing any of these answers I can say the ADO Connection object is your means of "opening and closing" the = ODBC (or OLE/DB) driver. Open and=20 close often is the rule of thumb for interacting with server database. = There is typically caching going on=20 for recent connections, so the opening a new connection is not the = resource hog it might seem. If all that=20 is ok, you may indeed have a pgODBC driver version with a leak. And as a complete aside because it has bitten me too many times, set the = Jet ConnectionTimeout under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0\ to 0 = (never timeout). A jet connection=20 (linked table) will loose connectivity after a default time of 60 = minutes of inactivity unless this key is=20 set to some other value (longer or shorter) or 0. Refreshing linked tables is also do-able. You should be able to google = it or write back and someone will=20 no doubt expound upon it. The Access (version) Handbook's from Sybex are = excellent references for the=20 mundane to the arcane. Robin Weber wrote: > Hello Community, >=20 > I'm new to this list. >=20 > I am a user of the Postgres ODBC driver, mainly under MS Access and=20 > Matlab. We deal in very large tabular datasets. (My largest table is = > currently 72 million records, and it will grow several times that size = > before the year is out. >=20 > The driver fails after several million record inserts (under access). = > Once failed (with nothing more helpful tan an "ODBC call failed" = message=20 > box), it will process no further requests. (I believe it will also = fail=20 > after receiving that much data, as well a sending.) >=20 > (I would think of a memory leak of some sort, but in my 27 pro years = of=20 > programming, I have never dealt with the inner workings of an ODBC=20 > driver, and I don't know how to get driver error information. This is = > also my first open source experience, so please forgive my naivete.) >=20 > I would like to figure out how to fix this problem. I'm willing to = help=20 > debug, but I need help getting started. How do I go about trying to=20 > understand this problem? >=20 > One thing that might be helpful: Is there a programmatic way to get=20 > Access to close and unload, then reopen the ODBC driver without = actually=20 > quitting Access? I notice that when I start Access "fresh" I can pump = > another several million records through before failing. If I can make = > my programs unload then reload the driver every few million records, = it=20 > might make a good workaround for my problem. Any clues out there? >=20 > With thanks, > Robin >=20 >=20 >=20 > -------------------------------------------------- > Robin Weber > Data Manager and Application Developer for > Marine Mammals and Birds > Tagging of Pacific Pelagics Project > University of California Santa Cruz > Long Marine Lab - Center for Ocean Health > 100 Shaffer Road > Santa Cruz, CA 95060-5730 > (831) 459-2691 >=20 >=20 >=20 >=20 > ---------------------------(end of = broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match