diff --git a/product/pg/local/init_datadir.sh.m4 b/product/pg/local/init_datadir.sh.m4 index 6ea6e26..23e143b 100644 --- a/product/pg/local/init_datadir.sh.m4 +++ b/product/pg/local/init_datadir.sh.m4 @@ -7,7 +7,7 @@ echo "listen_addresses=''" echo "unix_socket_directories='__datadir'" echo "fsync=off" echo "full_page_writes=off" -echo wal_level=replica +# echo wal_level=replica echo max_wal_size=400MB echo max_wal_senders=16 echo wal_keep_size=128MB diff --git a/product/pg/local/replicate.sh.m4 b/product/pg/local/replicate.sh.m4 deleted file mode 100644 index 4bd30e2..0000000 --- a/product/pg/local/replicate.sh.m4 +++ /dev/null @@ -1,37 +0,0 @@ -set -e -master=$1 - -$1/status || ( echo "Master {$1} environ is down?" ; exit 1 ) >&2 - -rc=0 -__workdir/status &>/dev/null || rc=$? - -test $rc -gt 0 || ( echo 'Cannot setup replication when server is running {__workdir}' ; exit 1 ) >&2 - -$1/backup -D __workdir/dt || ( echo "Backup of master failed {$?}" ; exit 1 ) >&2 - -( -echo "listen_addresses=''" -echo "unix_socket_directories='__datadir'" -echo "fsync=off" -echo "full_page_writes=off" -echo wal_level=replica -echo max_wal_size=400MB -echo max_wal_senders=16 -echo wal_keep_size=128MB -) >> __datadir/postgresql.conf - -sed -i "s/`#'log_statement = 'none'/log_statement = 'all'/" __datadir/postgresql.conf - -# echo "primary_conninfo = 'host=$1/dt user = $USER'" - -# touch __datadir/standby.signal - -# remove master's log created by baclup -test ! -f __datadir/.s.PGSQL.5432.lock || rm __datadir/.s.PGSQL.5432.lock -# remove master's logs -rm -r __datadir/log/* - -__workdir/start - -__workdir/status diff --git a/product/pg/t/01-smoke-03-replication.sh b/product/pg/t/01-smoke-03-replication.sh deleted file mode 100755 index b26f3a9..0000000 --- a/product/pg/t/01-smoke-03-replication.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!t/lib/test-in-image.sh postgresql-server -set -euo pipefail -pg1=$(environ pg1) -pg2=$(environ pg2) - -$pg1/start -$pg1/status - -# $pg2/start -# $pg2/status - -$pg2/replicate $pg1 - -$pg1/create_db test -$pg1/sql_test "create table t1 as select 'x1'" - -test x1 == $($pg1/sql -tc "select * from t1" test) -test x1 == $($pg2/sql -tc "select * from t1" test) - - -echo PASS $0