docker-postgis/sample/replication/tests/replication_test_slave.sh

15 wiersze
217 B
Bash
Executable File

#!/usr/bin/env bash
. /scripts/env-data.sh
set -e
echo "Check slave replication"
# Check table exists in slave
echo "Check table exists"
psql -d ${POSTGRES_DBNAME} -c "\dt" | grep test_replication_table
exit $?