@ -79,7 +79,7 @@ sub create_sub_pub_w_errors
$ db ,
$ db ,
qq[
qq[
SELECT count ( 1 ) = 1 FROM pg_stat_subscription_stats
SELECT count ( 1 ) = 1 FROM pg_stat_subscription_stats
WHERE subname = '$sub_name' AND seq_s ync_error_count > 0 AND sync_error_count > 0
WHERE subname = '$sub_name' AND sync_seq _error_count > 0 AND sync_table _error_count > 0
] )
] )
or die
or die
qq( Timed out while waiting for sequencesync errors and tablesync errors for subscription '$sub_name' ) ;
qq( Timed out while waiting for sequencesync errors and tablesync errors for subscription '$sub_name' ) ;
@ -175,8 +175,8 @@ my ($pub1_name, $sub1_name) =
is ( $ node_subscriber - > safe_psql (
is ( $ node_subscriber - > safe_psql (
$ db ,
$ db ,
qq( SELECT apply_error_count > 0,
qq( SELECT apply_error_count > 0,
seq_s ync_error_count > 0 ,
sync_seq _error_count > 0 ,
sync_error_count > 0 ,
sync_table_ error_count > 0 ,
confl_insert_exists > 0 ,
confl_insert_exists > 0 ,
confl_delete_missing > 0 ,
confl_delete_missing > 0 ,
stats_reset IS NULL
stats_reset IS NULL
@ -197,8 +197,8 @@ $node_subscriber->safe_psql($db,
is ( $ node_subscriber - > safe_psql (
is ( $ node_subscriber - > safe_psql (
$ db ,
$ db ,
qq( SELECT apply_error_count = 0,
qq( SELECT apply_error_count = 0,
seq_s ync_error_count = 0 ,
sync_seq _error_count = 0 ,
sync_error_count = 0 ,
sync_table_ error_count = 0 ,
confl_insert_exists = 0 ,
confl_insert_exists = 0 ,
confl_delete_missing = 0 ,
confl_delete_missing = 0 ,
stats_reset IS NOT NULL
stats_reset IS NOT NULL
@ -242,8 +242,8 @@ my ($pub2_name, $sub2_name) =
is ( $ node_subscriber - > safe_psql (
is ( $ node_subscriber - > safe_psql (
$ db ,
$ db ,
qq( SELECT apply_error_count > 0,
qq( SELECT apply_error_count > 0,
seq_s ync_error_count > 0 ,
sync_seq _error_count > 0 ,
sync_error_count > 0 ,
sync_table_ error_count > 0 ,
confl_insert_exists > 0 ,
confl_insert_exists > 0 ,
confl_delete_missing > 0 ,
confl_delete_missing > 0 ,
stats_reset IS NULL
stats_reset IS NULL
@ -263,8 +263,8 @@ $node_subscriber->safe_psql($db,
is ( $ node_subscriber - > safe_psql (
is ( $ node_subscriber - > safe_psql (
$ db ,
$ db ,
qq( SELECT apply_error_count = 0,
qq( SELECT apply_error_count = 0,
seq_s ync_error_count = 0 ,
sync_seq _error_count = 0 ,
sync_error_count = 0 ,
sync_table_ error_count = 0 ,
confl_insert_exists = 0 ,
confl_insert_exists = 0 ,
confl_delete_missing = 0 ,
confl_delete_missing = 0 ,
stats_reset IS NOT NULL
stats_reset IS NOT NULL
@ -278,8 +278,8 @@ is( $node_subscriber->safe_psql(
is ( $ node_subscriber - > safe_psql (
is ( $ node_subscriber - > safe_psql (
$ db ,
$ db ,
qq( SELECT apply_error_count = 0,
qq( SELECT apply_error_count = 0,
seq_s ync_error_count = 0 ,
sync_seq _error_count = 0 ,
sync_error_count = 0 ,
sync_table_ error_count = 0 ,
confl_insert_exists = 0 ,
confl_insert_exists = 0 ,
confl_delete_missing = 0 ,
confl_delete_missing = 0 ,
stats_reset IS NOT NULL
stats_reset IS NOT NULL