提交 a2b516da 编写于 作者: S Simon Riggs

Only throw recovery conflicts when InHotStandby. Bug fix to recent

patch to allow Index Only Scans on Hot Standby.

Bug report from Jaime Casanova
上级 c8105e62
......@@ -4725,7 +4725,8 @@ heap_xlog_visible(XLogRecPtr lsn, XLogRecord *record)
* forces any index-only scan that is in flight to perform heap fetches,
* rather than killing the transaction outright.
*/
ResolveRecoveryConflictWithSnapshot(xlrec->cutoff_xid, xlrec->node);
if (InHotStandby)
ResolveRecoveryConflictWithSnapshot(xlrec->cutoff_xid, xlrec->node);
LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册