Monitoring DB size

From: "Shenavai, Manuel" <manuel(dot)shenavai(at)sap(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Monitoring DB size
Date: 2024-07-15 14:42:41
Message-ID: AM9PR02MB741013EB8C5698CD8C44387CE8A12@AM9PR02MB7410.eurprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone,

we currently capture the db size (pg_database_size) which gives the “Disk space used by the database with the specified name”. Is it possible to further split this data how much space is occupied by live tuples, dead tuples and free space?

We would like to have something like:
DB Size: 200 MB, live tuple 100MB, Dead Tuple: 20 MB, free space 80MB

Is this possible?

Best regards,
Manuel

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2024-07-15 14:53:46 Re: How does this FK constraint error happen?
Previous Message Peter J. Holzer 2024-07-15 14:35:18 Re: How does this FK constraint error happen?