The pg_database_size(http://natserv.com/) is a function that takes the name of a database in the database cluster and returns the size in bytes. PostgreSQL is a powerful, open source relational database system. you want to find the size of a database in our example