Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XARbO-0007Ns-Aq for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2014 22:35:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XARbN-0001bS-NL for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2014 22:35:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XARbN-0001bL-2S for pgsql-bugs@postgresql.org; Thu, 24 Jul 2014 22:35:05 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XARbJ-0004Vl-0S for pgsql-bugs@postgresql.org; Thu, 24 Jul 2014 22:35:04 +0000 Received: from intern.anarazel.de (p54AF4C43.dip0.t-ipconnect.de [84.175.76.67]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 662E0500001; Fri, 25 Jul 2014 00:35:00 +0200 (CEST) Date: Fri, 25 Jul 2014 00:34:59 +0200 From: Andres Freund To: Tom Lane Cc: s.zuban@gmail.com, pgsql-bugs@postgresql.org, Heikki Linnakangas Subject: Re: BUG #11032: Prepared transactions do not update pg_last_xact_replay_timestamp() anymore Message-ID: <20140724223459.GI16857@alap3.anarazel.de> References: <20140724191127.32089.82261@wrigleys.postgresql.org> <20429.1406238373@sss.pgh.pa.us> <20140724215743.GG16857@alap3.anarazel.de> <21266.1406241129@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21266.1406241129@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-07-24 18:32:09 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2014-07-24 17:46:13 -0400, Tom Lane wrote: > >> It looks to me like this never worked: the code around recoveryStopsHere > >> has never paid any attention to COMMIT_PREPARED (or ABORT_PREPARED). > > > I wonder if this is possibly influenced by > > bb38fb0d43c8d7ff54072bfd8bd63154e536b384. IIRC before it committing a > > prepared xact caused a plain commit record for the xid doing the COMMIT > > PREPARED. > > Hm, I see nothing in that commit that looks like it would've changed > what gets written to WAL (and if it did, we have a serious minor version > compatibility issue). OTOH, if it did, that would explain the > complaint of a behavioral change since the last minor releases. Afaics before the commit a LockGXact() did a GetTopTransactionId(), afterwards it doesn't anymore. That'd fit, right? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs