pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
Cc: Greg Stark <gsstark@mit.edu>
Cc: Jan Wieck <JanWieck@Yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Lost updates vs resumable connections/transactions
Date: 16 Dec 2004 13:05:22 -0500
Message-ID: <876532p199.fsf@stark.xeocode.com> (raw)
In-Reply-To: <m2y8fyl58u.fsf@pcwi4002.uni-muenster.de>
References: <Pine.A41.4.58.0412091641060.68588@zivunix.uni-muenster.de>
	<41C06961.8020406@Yahoo.com>
	<87is73qrde.fsf@stark.xeocode.com>
	<m2y8fyl58u.fsf@pcwi4002.uni-muenster.de>


Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:

> 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...

The problem is that a database session keeps more state than just a
transaction id. It also keeps locks and other resources that would need to be
put aside in RAM. And for something like Apache where the new request could be
coming in to a different backend, these resources would have to be migrated to
the new backend when the session is resumed.

It could be done, but the most direct way to do it would be to keep around the
entire backend using something like SQLRelay. The resources used by SQLRelay
itself aren't really the concern here. They're dwarfed by the resources pinned
down by the database backends being kept around waiting in case the
application user comes back.

-- 
greg




view thread (15+ messages)  latest in thread

Message-ID: <876532p199.fsf@stark.xeocode.com>
Permalink:  ../876532p199.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/876532p199.fsf@stark.xeocode.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: gsstark@mit.edu, lechten@wi.uni-muenster.de, JanWieck@Yahoo.com
  Subject: Re: Lost updates vs resumable connections/transactions
  In-Reply-To: <876532p199.fsf@stark.xeocode.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox