Re: Monitoring DB size - Mailing list pgsql-general

From Muhammad Imtiaz
Subject Re: Monitoring DB size
Date
Msg-id CANwR1ORGpwejXsyvf8W-1+UoMU3XsQbdvY+asuHYkJXbgV4THw@mail.gmail.com
Whole thread Raw
In response to Monitoring DB size  ("Shenavai, Manuel" <manuel.shenavai@sap.com>)
Responses RE: Monitoring DB size
List pgsql-general
Hi,

You can choose from the following options. Hopefully, they will meet your requirements

1) pg_stat_user_tables view
2) pgstattuple extension

Regards,

Muhammad imtiaz

On Mon, 15 Jul 2024, 19:42 Shenavai, Manuel, <manuel.shenavai@sap.com> wrote:

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

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: How does this FK constraint error happen?
Next
From: Adrian Klaver
Date:
Subject: Re: How does this FK constraint error happen?