How can i select the unallocated space and the free space of the database on PostgreSql. I used this query to get the Size of databases.
SELECT pg_database.datname, pg_database_size(pg_database.datname), pg_size_pretty(pg_database_size(pg_database.datname))
FROM pg_database ;
I m new on PostgreSql and i m asking if there is a solution to get the same result of sp_spaceused on SqlServer using Postgresql