admin SHOW DATABASES (#51)

* admin SHOW DATABASES

* test

* correct replica count
This commit is contained in:
Lev Kokotov
2022-02-28 17:22:28 -08:00
committed by GitHub
parent eb1473060e
commit b21e0f4a7e
6 changed files with 170 additions and 9 deletions

View File

@@ -61,6 +61,7 @@ cd ../..
psql -e -h 127.0.0.1 -p 6432 -d pgbouncer -c 'SHOW STATS' > /dev/null
psql -h 127.0.0.1 -p 6432 -d pgbouncer -c 'RELOAD' > /dev/null
psql -h 127.0.0.1 -p 6432 -d pgbouncer -c 'SHOW CONFIG' > /dev/null
psql -h 127.0.0.1 -p 6432 -d pgbouncer -c 'SHOW DATABASES' > /dev/null
(! psql -e -h 127.0.0.1 -p 6432 -d random_db -c 'SHOW STATS' > /dev/null)
# Start PgCat in debug to demonstrate failover better