From 546c13e11b29a5408b9d6a6e3cca301380b47f7f Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Sun, 23 Apr 2017 22:12:01 +0100 Subject: [PATCH] Workaround for RecoverPreparedTransactions() Force overwriteOK = true while we investigate deeper fix Proposed by Tom Lane as temporary measure, accepted by me --- src/backend/access/transam/twophase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0