pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: StandbyRecoverPreparedTransactions recovers subtrans links incorrectly
Date: Sun, 23 Apr 2017 12:17:12 -0400
Message-ID: <357.1492964232@sss.pgh.pa.us> (raw)
In-Reply-To: <CANP8+j+j_5FjeuSz4OUF1=6FnKiMN5bA9xoZD8LUR-swrNx3kA@mail.gmail.com>
References: <20110.1492905318@sss.pgh.pa.us>
	<CANP8+j+j_5FjeuSz4OUF1=6FnKiMN5bA9xoZD8LUR-swrNx3kA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Simon Riggs <simon@2ndquadrant.com> 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



view thread (23+ messages)  latest in thread

Message-ID: <357.1492964232@sss.pgh.pa.us>
Permalink:  ../357.1492964232@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/357.1492964232@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com
  Subject: Re: StandbyRecoverPreparedTransactions recovers subtrans links incorrectly
  In-Reply-To: <357.1492964232@sss.pgh.pa.us>
  References: <20110.1492905318@sss.pgh.pa.us> <CANP8+j+j_5FjeuSz4OUF1=6FnKiMN5bA9xoZD8LUR-swrNx3kA@mail.gmail.com> <357.1492964232@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox