Skip site navigation (1) Skip section navigation (2)

Re: Lost updates vs resumable connections/transactions

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Jens Lechtenboerger <lechten(at)wi(dot)uni-muenster(dot)de>,pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Lost updates vs resumable connections/transactions
Date: 2004-12-18 21:22:15
Message-ID: 41C49F87.8070709@Yahoo.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
On 12/17/2004 1:10 PM, Greg Stark wrote:

> Jan Wieck <JanWieck(at)Yahoo(dot)com> 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(at)Yahoo(dot)com #

In response to

pgsql-interfaces by date

Next:From: Robert WimmerDate: 2004-12-19 01:16:44
Subject: type text in c functions
Previous:From: Tom LaneDate: 2004-12-18 18:02:49
Subject: Re: plpgsql errorcodes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group