Return sizes in listDatabases
#61
Labels
code/feature
Some user-visible feature is not implemented yet
good first issue
Good issues for new external contributors
Milestone
listDatabases
command should return sizes of each database (PostgreSQL schema) as well as PostgreSQL database total size on disk.The latter is easy: just call
SELECT pg_database_size(current_database())
and convert result.pg_database_size
is documented there.The former is only slightly harder. Let's call
pg_total_relation_size
on each table. Getting a table list is already implemented in theMsgListCollections
method; small refactoring to remove duplication might be needed.Tests should be added too.
See linked commit for code locations.
The text was updated successfully, but these errors were encountered: