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 AC22E3A1CD7 for ; Sat, 18 Dec 2004 21:22:20 +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 52035-04 for ; Sat, 18 Dec 2004 21:22:11 +0000 (GMT) Received: from smtp110.mail.sc5.yahoo.com (smtp110.mail.sc5.yahoo.com [66.163.170.8]) by svr1.postgresql.org (Postfix) with SMTP id C4A163A1D1D for ; Sat, 18 Dec 2004 21:22:06 +0000 (GMT) Received: from unknown (HELO jupiter.black-lion.info) (janwieck@68.80.245.191 with login) by smtp110.mail.sc5.yahoo.com with SMTP; 18 Dec 2004 21:22:05 -0000 Received: from [172.21.8.18] ([192.168.192.101]) (authenticated bits=0) by jupiter.black-lion.info (8.12.10/8.12.9) with ESMTP id iBILM0L3010748; Sat, 18 Dec 2004 16:22:00 -0500 (EST) (envelope-from JanWieck@Yahoo.com) Message-ID: <41C49F87.8070709@Yahoo.com> Date: Sat, 18 Dec 2004 16:22:15 -0500 From: Jan Wieck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Stark Cc: Jens Lechtenboerger , pgsql-interfaces@postgresql.org Subject: Re: Lost updates vs resumable connections/transactions References: <41C06961.8020406@Yahoo.com> <87is73qrde.fsf@stark.xeocode.com> <41C1CE7A.10405@Yahoo.com> <41C306A1.1070807@Yahoo.com> <41C31A2E.9030107@Yahoo.com> <87hdmkkd87.fsf@stark.xeocode.com> In-Reply-To: <87hdmkkd87.fsf@stark.xeocode.com> 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.317 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/42 X-Sequence-Number: 5212 On 12/17/2004 1:10 PM, Greg Stark wrote: > Jan Wieck writes: > >> As said, open transactions with DB locks during user interaction are a known >> bad idea for every sort of application. That together with the scaling problems >> is IMHO reason enough not to implement something that is designed to avoid >> proper application side advisory locks. > > I think it's a higher level divergence of opinion here. What he's talking > about is more like the Java/J2EE approach of building lots of infrastructure > to make everything work magically. Our instincts are to keep things simple and > avoid big hammers for features that would be hard to manage. ANSI SQL doesn't specify any lock timeouts or possibility to cancel someone elses transaction, heck it doesn't even define any way to find out what particular lock is held by what session. Maybe a database system that is oriented towards standard conformance isn't the right choice for this environment. Standard conformant SQL databases do not work well with open transactions holding locks during user interactions. That is a fact. I would object to adding proprietary features to PostgreSQL so that the application developer can use some sort of SQL looking gibberish instead of creating the appropriate framework. I am however only one developer, and if other key members of the developer community are in favor for it, I can certainly ignore such feature - given it wouldn't affect the rest of PostgreSQL's features or performance as long as not used. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #