提交 ec8a9034 编写于 作者: A Ashwin Agrawal

Check and wait to avoid large replication lag in heap_multi_insert()

Reviewed-by: NAsim R P <apraveen@pivotal.io>
Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
Reviewed-by: NPaul Guo <pguo@pivotal.io>
(cherry picked from commit eae1c6ef)
上级 d987631c
......@@ -2940,6 +2940,9 @@ heap_multi_insert(Relation relation, HeapTuple *tuples, int ntuples,
tuples[i]->t_self = heaptuples[i]->t_self;
pgstat_count_heap_insert(relation, ntuples);
if (needwal)
wait_to_avoid_large_repl_lag();
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册