gpcopy with the "
validate count" option may fail. The log only reports "
validation failed for table xxx". From the master log, we can see
gpcopy run below query to valid:
SELECT count(*) FROM ONLY ""public"".""tablename"" GROUP BY gp_segment_id ORDER BY gp_segment_id",
When one table is randomly distributed, the record count for each instance may not be the same between the source and destination cluster - in this case,
gpcopy reports failure.