pavan95 wrote: > In postgres for knowing the size of a database we generally use the system > administration function "pg_database_size('database_name')". > > I am curious to know how does this calculate internally from the pages(free > pages/fragmented pages/full pages) stored in the disk? It just adds up the sizes of the files that make up the database. Yours, Laurenz Albe