2022-02-08 15:48:28 -08:00
|
|
|
#/bin/bash
|
2022-02-09 21:19:14 -08:00
|
|
|
set -e
|
2022-02-08 15:48:28 -08:00
|
|
|
|
|
|
|
|
# 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-08 15:48:28 -08:00
|
|
|
|
2022-02-10 09:07:10 -08:00
|
|
|
# psql -f query_routing_setup.sql
|
2022-02-08 15:48:28 -08:00
|
|
|
|
|
|
|
|
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
|