Test rebuild_index
authorGreg Sabino Mullane <greg@endpoint.com>
Sun, 15 Mar 2015 03:26:28 +0000 (23:26 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sun, 15 Mar 2015 03:26:28 +0000 (23:26 -0400)
t/20-postgres.t

index 1e2e12da89e5a49971bd34ac7cbf374e02730dd8..c64a215833ce9f0a594f8369bc2fc689bb71d31b 100644 (file)
@@ -461,6 +461,9 @@ $t = q{add customcols returns expected message};
 $res = $bct->ctl('bucardo add customcols bucardo_test1 "SELECT id, data1, inty*30 AS inty"');
 like($res, qr/\QNew columns for public.bucardo_test1: "SELECT id, data1, inty*30 AS inty"/, $t);
 
+## Also test the rebuild_index functionality
+$res = $bct->ctl('bucardo update sync pgtest3 rebuild_index=1');
+
 ## We need to restart Bucardo entirely to change this. Someday, a reload sync will be enough.
 $bct->restart_bucardo($dbhX);