Skip to content

User statistics 2

dickgroenenberg edited this page Nov 19, 2020 · 4 revisions

User statistics 2

This is an update, though not a replacement, of User statistics

If manually assigned, user quota will be shown. For some reason default quota
for registered users (though set and active) are not shown. This means that the
user_quota_association between galaxy_user and quota (in the psql db) is only
created when users are manually (re)assigned to named quota (Quotas in the
galaxy Admin panel).

sudo -u postgres -H -- psql -d galaxydb -c "SELECT t1.username,t1.email,t3.name,t3.bytes,(t3.bytes/1073741824)GB FROM galaxy_user AS t1 INNER JOIN user_quota_association AS t2 ON t2.user_id = t1.id INNER JOIN quota AS t3 ON t2.quota_id = t3.id ORDER BY t1.username"

Clone this wiki locally