Speed up gp_replica_check, by not waiting for apply of first chckpoint.
Optimistically start the comparison, without waiting the standby to replay the checkpoint that is issued at the beginning of gp_replica_check. If there are any recent on-disk data changes, we will find that a data file doesn't match. But that's OK, we will retry. But in the common case that there are no recent changes, this greatly speeds up gp_replica_check. In particular, if you run gp_replica_check on multiple databases, like "make installcheck" does, the gp_replica_check() call on the first database will perform a checkpoint, but the calls on subsequent databases will likely go through without waiting for any more checkpoints.
Showing
想要评论请 注册 或 登录