[pg92@redhatB ~]$ psql skytf skytf psql (9.2.1) skytf=> select * from test_lond2 where id > 100 and id < 106 order by id; id | amount | create_time -----+-----------+--------------------- 101 | 101101101 | 2013-03-3011:16:34 102 | 102102102 | 2013-03-3011:16:30 103 | 103103 | 2013-03-3011:13:59 104 | 104104104 | 2013-03-3011:16:36 105 | 105105105 | 2013-03-3011:16:35 (5 rows)
2.8 目标库数据验证
1 2 3 4 5 6 7 8 9 10 11 12 13
[pg91@redhat6 ~]$ psql skytf skytf psql (9.1.2) Type"help"for help. skytf=> select * from test_lond2 where id > 100 and id < 106 order by id; id | amount | create_time -----+-----------+--------------------- 101 | 101101101 | 2013-03-3011:16:34 102 | 102102102 | 2013-03-3011:16:30 103 | 103103 | 2013-03-3011:13:59 104 | 104104104 | 2013-03-3011:16:36 105 | 105105105 | 2013-03-3011:16:35 (5 rows)
备注:可见数据已经同步过来了。
2.9 compare 比较记录条数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[pg91@redhat6 londiste]$ londiste3 s_skytf.ini compare 2013-03-30 11:23:07,946 9164 INFO Checking if node_p can be used for copy 2013-03-30 11:23:07,950 9164 INFO Node node_p seems good source, using it 2013-03-30 11:23:07,951 9164 INFO skytf.test_lond1: Using node node_p as provider 2013-03-30 11:23:08,024 9164 INFO Provider: node_p (root) 2013-03-30 11:23:08,045 9164 INFO Locking skytf.test_lond1 2013-03-30 11:23:08,052 9164 INFO Syncing skytf.test_lond1 2013-03-30 11:23:10,623 9164 INFO Counting skytf.test_lond1 2013-03-30 11:23:10,769 9164 INFO srcdb: 701 rows, checksum=455541632 2013-03-30 11:23:10,783 9164 INFO dstdb: 701 rows, checksum=455541632 2013-03-30 11:23:10,855 9164 INFO Checking if node_p can be used for copy 2013-03-30 11:23:10,866 9164 INFO Node node_p seems good source, using it 2013-03-30 11:23:10,867 9164 INFO skytf.test_lond2: Using node node_p as provider 2013-03-30 11:23:10,953 9164 INFO Provider: node_p (root) 2013-03-30 11:23:10,972 9164 INFO Locking skytf.test_lond2 2013-03-30 11:23:10,979 9164 INFO Syncing skytf.test_lond2 2013-03-30 11:23:13,564 9164 INFO Counting skytf.test_lond2 2013-03-30 11:23:13,690 9164 INFO srcdb: 10000 rows, checksum=-93227414953 2013-03-30 11:23:13,754 9164 INFO dstdb: 10000 rows, checksum=-93227414953