kopia lustrzana https://github.com/kartoza/docker-postgis
20 wiersze
338 B
Bash
Executable File
20 wiersze
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
. /scripts/env-data.sh
|
|
|
|
set -e
|
|
|
|
echo "Check master replication"
|
|
|
|
# Create a new table
|
|
|
|
echo "Create new table"
|
|
psql -d ${POSTGRES_DBNAME} -c "CREATE TABLE test_replication_table ();"
|
|
|
|
# Check table exists in master
|
|
|
|
echo "Check table exists"
|
|
psql -d ${POSTGRES_DBNAME} -c "\dt" | grep test_replication_table
|
|
|
|
exit $?
|