#!/bin/bash

cat << EOF >> data_N1/postgresql.conf
synchronous_standby_names = 'sub'
EOF
pg_ctl -D data_N1 reload 

# This should be uncommented for running tests with patch
#psql -U postgres -d postgres -c "drop publication pub"

# The record cound should be updated for each of the runs
time (
    echo -e "INSERT INTO tab VALUES (generate_series(1, 10000000));"
) | psql -U postgres
