Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2KCO-0001QX-1C for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2017 16:17:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d2KCN-0004Ah-Gm for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2017 16:17:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d2KCM-0004AR-S5 for pgsql-hackers@postgresql.org; Sun, 23 Apr 2017 16:17:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d2KCJ-0004Jz-3M for pgsql-hackers@postgresql.org; Sun, 23 Apr 2017 16:17:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3NGHC7u000358; Sun, 23 Apr 2017 12:17:12 -0400 From: Tom Lane To: Simon Riggs cc: PostgreSQL-development Subject: Re: StandbyRecoverPreparedTransactions recovers subtrans links incorrectly In-reply-to: References: <20110.1492905318@sss.pgh.pa.us> Comments: In-reply-to Simon Riggs message dated "Sun, 23 Apr 2017 10:59:32 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <356.1492964232.1@sss.pgh.pa.us> Date: Sun, 23 Apr 2017 12:17:12 -0400 Message-ID: <357.1492964232@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Simon Riggs writes: >> Also, when I fix that, it gets further but still crashes at the same >> Assert in SubTransSetParent. The proximate cause this time seems to be >> that RecoverPreparedTransactions's calculation of overwriteOK is wrong: >> it's computing that as "false", but in reality the subtrans link in >> question has already been set. > Not sure about that, investigating. As a quick hack, I just hotwired RecoverPreparedTransactions to set overwriteOK = true always, and with that and the SubTransSetParent argument-order fix, HEAD passes the recovery tests. Maybe we can be smarter than that, but this might be a good short-term fix to get the buildfarm green again. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers