diff --git a/server_metrics/postgresql.py b/server_metrics/postgresql.py
index <HASH>..<HASH> 100644
--- a/server_metrics/postgresql.py
+++ b/server_metrics/postgresql.py
@@ -14,3 +14,4 @@ def get_database_size(db_user, db_name):
         db_user, db_name)
     total = commands.getoutput(cmd).split()[2]
     total = int(total)
+    return total
Bugfix: get_postgresql_size did not return anything