Re: transaction timeout

From: Dr NoName <spamacct11(at)yahoo(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: transaction timeout
Date: 2005-07-26 16:08:32
Message-ID: 20050726160833.79485.qmail@web31502.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Tue, Jul 26, 2005 at 08:33:19AM -0700, Dr NoName
> wrote:
>
> > A single client should not be able to bring the
> entire
> > database down. The DB should recognize that the
> client
> > went down and roll back the transaction. That
> would be
> > the ideal solution. Anything else we can do to
> remedy
> > the situation?
>
> Now wait just a second. The database is not down at
> all just because
> somebody left a transaction open. The real problem
> is that that open
> transaction is having some resources locked, right?

right, but that's effectively the same thing: users
cannot write to the database and in some cases can't
even read from it.

> I guess the real answer is not to leave transactions
> open. If you do
> that by design, say because the app shows a data
> modification window,
> and keeps a transaction open just to be able to save
> the changes later,
> then you really need to rethink your app design.

There is no user interaction in the middle of a
transaction. But there are other things we have to do
(file system I/O, heavy processing, etc.) Those
operations really do need to be interleaved with the
DB writes.

thanks,

Eugene

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dr NoName 2005-07-26 16:19:10 Re: transaction timeout
Previous Message Walsh, Richard (Richard) 2005-07-26 16:04:08 dropping non-existent tables