X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8CC2F329E41 for ; Tue, 21 Sep 2004 08:59:38 +0100 (BST) 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 98921-04 for ; Tue, 21 Sep 2004 07:59:31 +0000 (GMT) Received: from mail.logi-track.com (www.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 7CE51329E23 for ; Tue, 21 Sep 2004 08:59:31 +0100 (BST) Received: from kingfisher.intern.logi-track.com (G6358.g.pppool.de [80.185.99.88]) by mail.logi-track.com (Postfix) with ESMTP id CAC3A30550; Tue, 21 Sep 2004 09:59:30 +0200 (CEST) Received: from kingfisher.intern.logi-track.com (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with SMTP id 0B0DBAB2F2; Tue, 21 Sep 2004 09:59:24 +0200 (CEST) Date: Tue, 21 Sep 2004 09:59:22 +0200 From: Markus Schaber To: "John R Pierce" Cc: "Csaba Nagy" , Subject: Re: "Idle in Transaction" revisited. Message-ID: <20040921095922.145bf883@kingfisher.intern.logi-track.com> 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> <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> <1095670077.3661.47.camel@localhost.localdomain> <129801c49f29$d54263f0$0200a8c0@hogranch.com> Organization: logi-track ag, =?ISO-8859-15?Q?z=FCrich?= X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-pc-linux-gnu) X-Face: Nx5T&>Nj$VrVPv}sC3IL&)TqHHOKCz/|)R$i"*r@w0{*I6w; UNU_hdl1J4NI_m{IMztq=>cmM}1gCLbAF+9\#CGkG8}Y{x%SuQ>1#t:; Z(|\qdd[i]HStki~#w1$TPF}:0w-7"S\Ev|_a$K 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. >=20 > in this particular case, the lock is to simply indicate there is an activ= e=20 > 'subscriber' to a messaging 'subject', if the app has exited any which wa= ys,=20 > by definition that 'subscriber' is no longer active, so yes, we want the= =20 > lock to go away.=20 Have you ever thought at using LISTEN/NOTIFY for this purpose? Markus --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com