show specific columns from devices table rather than *

This commit is contained in:
Eric House 2013-09-15 10:16:11 -07:00
parent c212c0e367
commit b0e2975994

View file

@ -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