Calculation of Database Size in postgres

From: pavan95 <pavan(dot)postgresdba(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Calculation of Database Size in postgres
Date: 2018-02-14 10:17:50
Message-ID: 1518603470895-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,

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?

Thanks in advance!

Regards,
Pavan

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2018-02-14 10:21:21 Re: Calculation of Database Size in postgres
Previous Message Sathesh S 2018-02-14 07:41:34 Re: Disable /Suppress hostname checks while secured LDAP