From: Simon Riggs Date: Sun, 23 Apr 2017 21:12:01 +0000 (+0100) Subject: Workaround for RecoverPreparedTransactions() X-Git-Tag: REL_10_BETA1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=546c13e11b29a5408b9d6a6e3cca301380b47f7f;p=postgresql Workaround for RecoverPreparedTransactions() Force overwriteOK = true while we investigate deeper fix Proposed by Tom Lane as temporary measure, accepted by me --- diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index 79b3957d08..fa7124d903 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -1956,7 +1956,7 @@ RecoverPreparedTransactions(void) * hierarchy, but there's no need to restore that exactly. */ for (i = 0; i < hdr->nsubxacts; i++) - SubTransSetParent(subxids[i], xid, overwriteOK); + SubTransSetParent(subxids[i], xid, true); /* * Recreate its GXACT and dummy PGPROC. But, check whether