X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CE192D1EEC0 for ; Thu, 29 Apr 2004 18:12:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 82325-07 for ; Thu, 29 Apr 2004 18:11:56 -0300 (ADT) Received: from nbp.org (nbp.org [216.127.78.9]) by svr1.postgresql.org (Postfix) with ESMTP id BC00CD1EEBC for ; Thu, 29 Apr 2004 18:11:53 -0300 (ADT) Received: from it01 (unknown [68.162.250.83]) by nbp.org (Postfix) with ESMTP id 0EA65414102 for ; Thu, 29 Apr 2004 17:11:55 -0400 (EDT) Reply-To: From: "Ethan Rowe" To: Subject: Transaction oddities? Date: Thu, 29 Apr 2004 17:20:10 -0400 Organization: National Braille Press Message-ID: <002901c42e2f$c0c93950$5164a8c0@it01> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/125 X-Sequence-Number: 4020 Hi. Relative newbie here. I'm using the Perl DBI:ODBC (ActiveState Perl 5.8.0) to work with my psqlodbc DSN (on Windows 2000 SP 4). This generally works fine. However, I'm having some weird behavior that I haven't seen before and can't easily test in an alternate configuration. My script reads information from a Paradox table, formats it, and pushes it into PostgreSQL tables. I have AutoCommit turned off. My script performs a variety of UPDATE and INSERT statements within the same transaction. Then, once finished altering data, it uses a verification routine to compare the results of the operations (by SELECTing from PostgreSQL) to the source data. All of my UPDATE and INSERT statements go through fine. However, when my verify routine tries to SELECT the data they added/changed, it can't see it. What makes this weird is if I change the order of events so the verification of a particular record occurs IMMEDIATELY after the INSERT, the SELECT does see the new data. Ordinarily, the verification occurs only at the end. And of course, the transaction isn't committed or rolled back until after the verification step. Maybe this has nothing to do with psqlodbc, but I can't tell. I've tried using SET TRANSACTION ISOLATION LEVEL READ COMMITTED to no avail (but that's the default anyway, isn't it?) Any ideas or mockery or whatever would be greatly appreciated. Thanks. Ethan Rowe Information Systems Administrator National Braille Press Boston, MA 617-266-6160 ext. 35 erowe@nbp.org