From: Markus Schaber <schabios@logi-track.com>
To: John R Pierce <pierce@hogranch.com>
Cc: Csaba Nagy <nagy@ecircle-ag.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: "Idle in Transaction" revisited.
Date: Tue, 21 Sep 2004 09:59:22 +0200
Message-ID: <20040921095922.145bf883@kingfisher.intern.logi-track.com> (raw)
In-Reply-To: <129801c49f29$d54263f0$0200a8c0@hogranch.com>
References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com>
<26344.1095464431@sss.pgh.pa.us>
<0e3701c49d19$e8a90230$0200a8c0@hogranch.com>
<Pine.BSO.4.56.0409180219260.17711@leary.csoft.net>
<0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com>
<1095670077.3661.47.camel@localhost.localdomain>
<129801c49f29$d54263f0$0200a8c0@hogranch.com>
Hi,
On Mon, 20 Sep 2004 08:52:29 -0700
"John R Pierce" <pierce@hogranch.com> wrote:
> > Regarding cooperative locking and the fact that after a crash the lock
> > stays: I'm not sure how your application is designed, but in ours after
> > a crash we definitely want it to stay there, so we can manually check
> > the consistency of the data before releasing the lock for further
> > processing. I have bad experience with automatic recovery after crashes.
>
> in this particular case, the lock is to simply indicate there is an active
> 'subscriber' to a messaging 'subject', if the app has exited any which ways,
> by definition that 'subscriber' is no longer active, so yes, we want the
> lock to go away.
Have you ever thought at using LISTEN/NOTIFY for this purpose?
Markus
--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabios@logi-track.com, pierce@hogranch.com, nagy@ecircle-ag.com
Subject: Re: "Idle in Transaction" revisited.
In-Reply-To: <20040921095922.145bf883@kingfisher.intern.logi-track.com>
References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> <26344.1095464431@sss.pgh.pa.us> <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> <Pine.BSO.4.56.0409180219260.17711@leary.csoft.net> <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> <1095670077.3661.47.camel@localhost.localdomain> <129801c49f29$d54263f0$0200a8c0@hogranch.com> <20040921095922.145bf883@kingfisher.intern.logi-track.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