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 3BE553CCEA7 for ; Fri, 17 Dec 2004 17:40:11 +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 65139-10 for ; Fri, 17 Dec 2004 17:39:58 +0000 (GMT) Received: from smtp106.mail.sc5.yahoo.com (smtp106.mail.sc5.yahoo.com [66.163.169.226]) by svr1.postgresql.org (Postfix) with SMTP id 8D4B33CCEFC for ; Fri, 17 Dec 2004 17:39:57 +0000 (GMT) Received: from unknown (HELO jupiter.black-lion.info) (janwieck@68.80.245.191 with login) by smtp106.mail.sc5.yahoo.com with SMTP; 17 Dec 2004 17:39:56 -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 iBHHdtL3003573; Fri, 17 Dec 2004 12:39:55 -0500 (EST) (envelope-from JanWieck@Yahoo.com) Message-ID: <41C31A2E.9030107@Yahoo.com> Date: Fri, 17 Dec 2004 12:41:02 -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: Jens Lechtenboerger Cc: Greg Stark , 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> 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.32 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/30 X-Sequence-Number: 5200 On 12/17/2004 12:04 PM, Jens Lechtenboerger wrote: > Jan Wieck writes: > >> [...] >> The PostgreSQL team members (me included) are big fans of >> portability. Introducing code that solves a problem for one specific web >> server, > > I don't see how this is web server specific? > >> in the special case of a small number of application users, > > Actually, I'm not sure that this should bother you. As I wrote > previously: I can put just the same load on the database server > using Java applets right now. In fact, the load with applets would > even be higher, as the database server does not receive any hint > when the connection is idle for some time... > >> in a non portable way for only a couple operating systems > > I get this point. > >> and where the resulting functional difference is visible to the >> database client ... > > If it wasn't visible, then it would be useless for me. I meant that there would be a functional difference between databases running on different operating systems. Like "if you want connection suspend/resume to work your DB server must run on OS foo or bar ...". > >> I don't think this idea has much of a chance to make it into the >> source tree. > > I'm disappointed, though, and summarize: > PostgreSQL transactions cannot be used naturally with CGI/PHP, and > virtually every web application out there is prone to lost updates. 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. Get used to put reasonable amounts of your business logic into stored procedures on the database side and you will find that dealing with advisory locks is not as painfull as it looks like. Doing it all with PHP coding alone, where a single business process is scattered over a input form flow dictated number of source files is neither as easy, nor as maintainable. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #