status: local change, connect to the right pgsql cluster

This commit is contained in:
Stefano Zacchiroli 2015-04-28 10:31:56 +02:00
parent a65ab0cf2a
commit c51c86a735

View file

@ -7,8 +7,12 @@
# intended usage: watch -n 60 bin/status
DBNAME="github"
DBCONN="-p 5433"
echo "SELECT COUNT(*), MAX(id) FROM repos" | psql "$DBNAME"
echo "\\l+ ${DBNAME}" | psql "$DBNAME"
psql="psql $DBCONN --no-psqlrc"
ps auxw | grep bin/batch
echo "SELECT COUNT(*), MAX(id) FROM repos" | $psql "$DBNAME"
echo "\\l+ ${DBNAME}" | $psql "$DBNAME"
du -sh cache/
zgrep -i --color=auto "'X-RateLimit-Remaining'" cache/$(ls -t cache/ | head -n 4 | tail -n 1)