query_routing.sh 405 B

12345678910111213141516171819
  1. #/bin/bash
  2. set -e
  3. # Setup all the shards.
  4. # sudo service postgresql restart
  5. echo "Giving Postgres 5 seconds to start up..."
  6. # sleep 5
  7. # psql -f query_routing_setup.sql
  8. psql -h 127.0.0.1 -p 6432 -f query_routing_test_insert.sql
  9. psql -h 127.0.0.1 -p 6432 -f query_routing_test_select.sql
  10. psql -e -h 127.0.0.1 -p 6432 -f query_routing_test_primary_replica.sql
  11. psql -f query_routing_test_validate.sql