mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
test session mode and config reload for real (#33)
* test session mode and config reload for real * period * run them at the end * typo * wrong dir
This commit is contained in:
@@ -34,9 +34,6 @@ psql -e -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_select.sql > /
|
||||
# Replica/primary selection & more sharding tests
|
||||
psql -e -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_primary_replica.sql > /dev/null
|
||||
|
||||
# Test reload config
|
||||
kill -SIGHUP $(pgrep pgcat)
|
||||
|
||||
#
|
||||
# ActiveRecord tests!
|
||||
#
|
||||
@@ -45,6 +42,16 @@ sudo gem install bundler
|
||||
bundle install
|
||||
ruby tests.rb
|
||||
|
||||
cd ../../
|
||||
# Test session mode (and config reload)
|
||||
sed -i 's/pool_mode = "transaction"/pool_mode = "session"/' pgcat.toml
|
||||
|
||||
# Reload config
|
||||
kill -SIGHUP $(pgrep pgcat)
|
||||
|
||||
# Prepared statements that will only work in session mode
|
||||
pgbench -h 127.0.0.1 -p 6432 -t 500 -c 2 --protocol prepared
|
||||
|
||||
# Attempt clean shut down
|
||||
killall pgcat -s SIGINT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user