Files
pgcat/tests/sharding/query_routing.sh

20 lines
405 B
Bash
Raw Normal View History

#/bin/bash
2022-02-09 21:19:14 -08:00
set -e
# Setup all the shards.
2022-02-09 21:19:14 -08:00
# sudo service postgresql restart
echo "Giving Postgres 5 seconds to start up..."
# sleep 5
2022-02-10 09:07:10 -08:00
# 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
2022-02-09 21:19:14 -08:00
psql -e -h 127.0.0.1 -p 6432 -f query_routing_test_primary_replica.sql
2022-02-09 21:20:20 -08:00
psql -f query_routing_test_validate.sql