mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
20 lines
405 B
Bash
20 lines
405 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
|