Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 786419FB336 for ; Fri, 3 Nov 2006 10:42:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 67943-02 for ; Fri, 3 Nov 2006 10:42:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AE0779FB321 for ; Fri, 3 Nov 2006 10:42:13 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kA3Eg2f7001887; Fri, 3 Nov 2006 09:42:03 -0500 (EST) To: "Simon Riggs" cc: joe@mcknight.de, pgsql-hackers@postgresql.org Subject: Re: "recovering prepared transaction" after serverrestart message In-reply-to: <1162541215.3587.507.camel@silverbirch.site> References: <27067.1162536485@sss.pgh.pa.us> <1162541215.3587.507.camel@silverbirch.site> Comments: In-reply-to "Simon Riggs" message dated "Fri, 03 Nov 2006 08:06:55 +0000" Date: Fri, 03 Nov 2006 09:42:02 -0500 Message-ID: <1886.1162564922@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/105 X-Sequence-Number: 93567 "Simon Riggs" writes: > We only care when they break, otherwise its just situation normal, yes? No, the trouble case is where the XA manager that owns the transaction has forgotten about it. > Is there a way to see prepared transactions where the original session > that prepared then has died? Perhaps the message at startup should be > "you have at least one prepared transaction that needs resolution". I am completely baffled by this focus on database startup time. That's not where the problem is. regards, tom lane