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 63AF3D1BB49 for ; Tue, 6 Apr 2004 09:38:35 -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 12630-08 for ; Tue, 6 Apr 2004 09:39:21 -0300 (ADT) Received: from schiehallion.willmer.net (82-68-44-10.dsl.in-addr.zen.co.uk [82.68.44.10]) by svr1.postgresql.org (Postfix) with ESMTP id F073DD1BA2E for ; Tue, 6 Apr 2004 09:38:32 -0300 (ADT) Received: from 82-68-44-12.dsl.in-addr.zen.co.uk ([82.68.44.12] helo=willmer.org) by schiehallion.willmer.net with esmtp (Exim 4.21) id 1BApq4-0007Df-Hm for pgsql-odbc@postgresql.org; Tue, 06 Apr 2004 12:38:00 +0000 Message-ID: <4072A4F2.7060103@willmer.org> Date: Tue, 06 Apr 2004 13:39:14 +0100 From: Rachel Willmer User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: FAQ? how best to implement locking with MS Access client, Postgres server, and ODBC? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/40 X-Sequence-Number: 3935 I have read all available documentation I can find, and am struggling to understand how best to implement locking in a multi-user database using Access 2000 as the front-end. Here's the current scenario. Postgres has the default "Read committed" mode Access is set to open in "shared" mode, with "record-level locking". ODBC has row versioning turned on. I have two machines which attempt to modify the same record in a form. The first succeeds, the second fails & rolls back and then the Access application throws up a "no current record" error. I can trap that error in the Access application, but what then am I supposed to do with it? I'm happy to either retry the update, or drop it silently, but can't work out how to do either successfully. I guess I have two questions: (a) has anyone got locking to work in this environment? if so, how? (b) where can I find some more documentation on this? I've googled for hours, but haven't found much of use. Any pointers will be most welcome... Rachel