[Collab-qa-commits] r2191 - udd
Lucas Nussbaum
lucas at alioth.debian.org
Thu Mar 29 07:43:53 UTC 2012
Author: lucas
Date: 2012-03-29 07:43:52 +0000 (Thu, 29 Mar 2012)
New Revision: 2191
Modified:
udd/README.kill-idle
Log:
add more interesting queries
Modified: udd/README.kill-idle
===================================================================
--- udd/README.kill-idle 2012-03-29 07:43:20 UTC (rev 2190)
+++ udd/README.kill-idle 2012-03-29 07:43:52 UTC (rev 2191)
@@ -1,2 +1,8 @@
Kill all idle transactions:
udd=> select * from dsa_kill_all_idle_transactions();
+
+size of DB:
+SELECT pg_size_pretty(pg_database_size('udd'));
+
+size of relations:
+select relname, pg_total_relation_size(relname::text) size from pg_class where relnamespace=2200 and relkind='r' order by size desc;
More information about the Collab-qa-commits
mailing list