From b0e297599425d1abb021b062acac89c0eafb96fc Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 15 Sep 2013 10:16:11 -0700 Subject: [PATCH] show specific columns from devices table rather than * --- xwords4/relay/scripts/showinplay.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/relay/scripts/showinplay.sh b/xwords4/relay/scripts/showinplay.sh index 3f17c2bc9..1ac19e90d 100755 --- a/xwords4/relay/scripts/showinplay.sh +++ b/xwords4/relay/scripts/showinplay.sh @@ -37,6 +37,6 @@ echo "SELECT connname, hid, devid, count(*), sum(msglen) "\ "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 LIMIT $LIMIT;" \ +echo "SELECT id, model, osvers, mtime, array_length(devTypes, 1) as cnt, devTypes[1] as dTyp, devids[1] as devid FROM devices WHERE id IN (select UNNEST(devids) FROM games $QUERY) ORDER BY id LIMIT $LIMIT;" \ | psql xwgames