mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
apply limit to all; list messages without connname too
This commit is contained in:
parent
2e7433f2b2
commit
4207df8078
1 changed files with 5 additions and 4 deletions
|
@ -27,15 +27,16 @@ echo -n "Device (pid) count: $(pidof xwords | wc | awk '{print $2}')"
|
|||
echo "; relay pid[s]: $(pidof xwrelay)"
|
||||
echo "Row count:" $(psql -t xwgames -c "select count(*) FROM games $QUERY;")
|
||||
|
||||
echo "SELECT dead as d,connname,cid,room,lang as lg,clntVers as cv ,ntotal as t,nperdevice as nPerDev,nsents as snts, seeds,devids,tokens,ack "\
|
||||
echo "SELECT dead as d,connname,cid,room,lang as lg,clntVers as cv ,ntotal as t,nperdevice as nPerDev,nsents as snts, seeds,devids,tokens,ack, mtimes "\
|
||||
"FROM games $QUERY ORDER BY NOT dead, connname LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
echo "SELECT connname, hid, devid, count(*), sum(msglen) "\
|
||||
"FROM msgs where connname in (SELECT connname from games where not games.dead group by connname)" \
|
||||
"GROUP BY connname, hid, devid ORDER BY connname;" \
|
||||
"FROM msgs where connname in (SELECT connname from games where not games.dead group by connname) "\
|
||||
"OR devid IN (SELECT unnest(devids) from games where not games.dead) "\
|
||||
"GROUP BY connname, hid, devid ORDER BY connname LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
echo "SELECT * FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id;" \
|
||||
echo "SELECT * FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id LIMIT $LIMIT;" \
|
||||
| psql xwgames
|
||||
|
||||
|
|
Loading…
Reference in a new issue