Files
pgcat/tests/sharding/query_routing.sh
2022-02-09 21:19:14 -08:00

19 lines
402 B
Bash

#/bin/bash
set -e
# Setup all the shards.
# sudo service postgresql restart
echo "Giving Postgres 5 seconds to start up..."
# sleep 5
psql -f query_routing_setup.sql
psql -h 127.0.0.1 -p 6432 -f query_routing_test_insert.sql
psql -h 127.0.0.1 -p 6432 -f query_routing_test_select.sql
psql -e -h 127.0.0.1 -p 6432 -f query_routing_test_primary_replica.sql
psql -f query_routing_test_validate.sql