X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 899CE3B7746 for ; Thu, 16 Dec 2004 13:53:01 +0000 (GMT) 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 75075-07 for ; Thu, 16 Dec 2004 13:52:51 +0000 (GMT) Received: from wi-vmail1.wi1.uni-muenster.de (WI-VMAIL1.UNI-MUENSTER.DE [128.176.158.8]) by svr1.postgresql.org (Postfix) with SMTP id E009E3B773D for ; Thu, 16 Dec 2004 13:52:50 +0000 (GMT) Received: from pcwi4002.uni-muenster.de ([128.176.159.107]) by wi-vmail1.wi1.uni-muenster.de with Microsoft SMTPSVC(6.0.3790.211); Thu, 16 Dec 2004 14:52:42 +0100 To: Greg Stark Cc: Jan Wieck , pgsql-interfaces@postgresql.org Subject: Re: Lost updates vs resumable connections/transactions References: <41C06961.8020406@Yahoo.com> <87is73qrde.fsf@stark.xeocode.com> From: Jens Lechtenboerger Date: Thu, 16 Dec 2004 14:52:49 +0100 In-Reply-To: <87is73qrde.fsf@stark.xeocode.com> (Greg Stark's message of "15 Dec 2004 14:43:41 -0500") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 16 Dec 2004 13:52:42.0400 (UTC) FILETIME=[836FBA00:01C4E376] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/37 X-Sequence-Number: 5207 Greg Stark writes: > Jan Wieck writes: > >> Even applications that have statefull enduser terminals (like SAP R/3 for >> example) never allow an open transaction over user interaction. > > I'm not sure using SAP as your paragon of design excellence is a wise choice > here. From what I understand SAP implemented its own locking system because > the database it was based on didn't offer any locking at all. > > But your basic point is sound. For a web site I would definitely avoid using > anything like database locks and even avoid doing anything with application > locks if possible. Well, I don't necessarily have to use locks. I want any form of concurrency control that ensures serializability. Optimistic approaches would be fine as well. > If you really really want to expose the database session state I think he's on > the right track using SQLRelay. This would let him handle reconnecting a user > with her session even if she's connecting to a different Apache process. But why should I have SQLRelay between me and the database? I don't plan to use any of its "real" features. It would just be a proxy with a known address that maintains a database connection. Obviously, the database server itself has a known address and maintains database connections... Jens