Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XAR1K-0005i8-2y for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2014 21:57:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XAR1J-0004VO-Jr for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jul 2014 21:57:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XAR1I-0004VC-JF for pgsql-bugs@postgresql.org; Thu, 24 Jul 2014 21:57:48 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XAR1F-00059c-3y for pgsql-bugs@postgresql.org; Thu, 24 Jul 2014 21:57:46 +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 8E669500001; Thu, 24 Jul 2014 23:57:43 +0200 (CEST) Date: Thu, 24 Jul 2014 23:57:43 +0200 From: Andres Freund To: Tom Lane Cc: s.zuban@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #11032: Prepared transactions do not update pg_last_xact_replay_timestamp() anymore Message-ID: <20140724215743.GG16857@alap3.anarazel.de> References: <20140724191127.32089.82261@wrigleys.postgresql.org> <20429.1406238373@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20429.1406238373@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 17:46:13 -0400, Tom Lane wrote: > s.zuban@gmail.com writes: > > After upgrade from 9.3.4 to 9.3.5 pg_last_xact_replay_timestamp() returns > > outdated timestamp. > > > It stopped working properly after commit > > d19bd29f07aef9e508ff047d128a4046cc8bc1e2 > > Really? > > It looks to me like this never worked: the code around recoveryStopsHere > has never paid any attention to COMMIT_PREPARED (or ABORT_PREPARED). > Certainly that patch had zip to do with the replay-timestamp behavior. > > If you think it worked before, I'd like to see what your test case was. 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. 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