Agust 2004,https://drdobbs.com/ 上应该有一篇文章,remote table comparison applied to MySQL databases.(这篇文章没找到),这篇文章应该提出了一种自上而下的算法。 Giuseppe Maxia 根据此文章,提供了 mysql 的具体实现,写了​​Remote MySQL table comparison​​​,Fabien Coelho 也读了篇文章,并实现了PostgreSQL 版本 ​​pg_comparator ​​​,​​github pg_comparator​​​,junxie6 总结了当时的状态,并根据 Maxia/Coelho bottom-up algorithm,提出了一种针对少量数据不同的情况下的 top-down 的算法,没有找到这个环节的代码库。
目标端先暂停,源端执行快照点LSN,目标端执行到特定LSN时停止,然后开始比对;比对完之后,目标端再放开;(需要表级别的暂停功能);
其他相关
​​​SQL Server tablediff command line utility​​​,比较两个 SQL Server 服务器上的两个表;待测试原理 TODO
​​​Ways to compare and find differences for SQL Server tables and data​​ SQL Server 表结构比较和数据对比相关资料索引;

​percona-toolkit​​ 中实现了 pt-table-checksum ,This tool is focused on finding data differences efficiently. If any data is different, you can resolve the problem with pt-table-sync.