提交 d301479a 编写于 作者: J Jacob Champion

GetOldestXmin: fix VACUUM during upgrade

There are no distributed transactions during binary upgrade, so we can
ignore them. This is a backport from commit fdab8817 in master.
上级 ba9a0c7f
......@@ -69,6 +69,13 @@ localXidSatisfiesAnyDistributedSnapshot(TransactionId localXid)
if (!IsUnderPostmaster || !IsNormalProcessingMode())
return false;
/*
* During upgrade, there is no distributed system to query, and no way a
* distributed transaction could be looking at a tuple right now.
*/
if (IsBinaryUpgrade)
return false;
/*
* If don't have snapshot, can't check the global visibility and hence
* return not to perform clean the tuple.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册