X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8C637D1B1AA for ; Thu, 8 Jul 2004 13:06:23 -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 34590-07 for ; Thu, 8 Jul 2004 16:06:13 +0000 (GMT) Received: from mailhub-4.iastate.edu (mailhub-4.iastate.edu [129.186.140.14]) by svr1.postgresql.org (Postfix) with ESMTP id 29E07D1B1DC for ; Thu, 8 Jul 2004 13:06:11 -0300 (ADT) Received: from mailout-2.iastate.edu (mailout-2.iastate.edu [129.186.140.2]) by mailhub-4.iastate.edu (8.12.10/8.12.10) with SMTP id i68G69DY026563; Thu, 8 Jul 2004 11:06:10 -0500 Received: from pc148107.vm.iastate.edu(129.186.148.107) by mailout-2.iastate.edu via csmap id bb9f8e7c_d0f8_11d8_8355_003048290bef_23790; Thu, 08 Jul 2004 11:06:13 -0500 (CDT) Message-ID: <40ED6FD6.4010903@iastate.edu> Date: Thu, 08 Jul 2004 11:01:26 -0500 From: Mark Slagell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page , pgsql-odbc@postgresql.org Subject: Re: psqlodbc versioning References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/38 X-Sequence-Number: 4171 Dave Page wrote: > ... > > WRT to the lock issue, I haven't checked, but I suspect that the driver > doesn't report it because PostgreSQL simply waits for it to clear before > continuing (or detecting a deadlock and aborting the transaction). I'm > not sure that the driver is supposed to report it off the top of my head > though. Okay, I wondered if this would come down to the question of exactly what is the odbc spec. The application in question originally ran with a non-SQL database engine ("ProISAM") that suffered from table size limits. The larger clients started moving to Oracle a few years ago as they outgrew those limits. More recently, the vendor announced to all clients that they would stop supporting ProISAM entirely, and everybody had to either move to Oracle (big bucks) or MS SQL server, or Postgres, which they were just starting to support. I suspect they never did a lot of testing on postgres, just assumed they could make minor adjustments to their Oracle code and it would just work. And apparently Oracle's odbc driver does report row locks so the application can relay that information to the user. We were one of the first clients to adopt postgres, and were surprised to run into this symptom. I have users calling my beeper all the time saying the application is broken, essentially because they can't distinguish a record lock from the system being hung, and it's starting to drive me up the wall. Obviously we're talking about some problematic application design. It relies too much, and too conservatively, on row locks. If one user is looking at a client information screen (even if they aren't changing anything) no other users can work with that client in any way until the first user leaves that screen. Bad things can happen when somebody walks away from their computer and goes to lunch. Being unable to improve the application ourselves since we don't own it, and assuming we're not just getting a snow job about what odbc supports, I'd be pleased if we could promote adding lock reporting to the psql odbc interface -- even if that means expanding the spec a little to duplicate that part of Oracle's behavior which our vendor apparently relies on. (Or does that imply postgres-proper issues too, making the idea unworkable?) A less desirable solution is to cough up the bucks and convert to Oracle. I'd have a pretty hard time selling that to our bean counters this year. In a better world, we would ditch the vendor completely, but they monopolized this little corner of the market some time ago and no viable competitor has emerged yet. It's an unwieldy legacy application that most of their clients are entrenched with -- and although some of them have better resources than we do, frustration abounds. -- Mark