From: | "Shenavai, Manuel" <manuel(dot)shenavai(at)sap(dot)com> |
---|---|
To: | Muhammad Imtiaz <imtiaz(dot)m(at)bitnine(dot)net> |
Cc: | "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | RE: Monitoring DB size |
Date: | 2024-07-16 11:37:15 |
Message-ID: | AM9PR02MB741009D9AAE6CCC6234F800BE8A22@AM9PR02MB7410.eurprd02.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Muhammad,
thanks for the suggestions. Going with pg_stat_user_tables view, we would also need to know the size of the tuple or at least an estimate.
Do we know the size of a tuple? Is there a maximum for the tupe size?
Best regards,
Manuel
From: Muhammad Imtiaz <imtiaz(dot)m(at)bitnine(dot)net>
Sent: 15 July 2024 17:26
To: Shenavai, Manuel <manuel(dot)shenavai(at)sap(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Monitoring DB size
You don't often get email from imtiaz(dot)m(at)bitnine(dot)net<mailto:imtiaz(dot)m(at)bitnine(dot)net>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
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(dot)shenavai(at)sap(dot)com<mailto:manuel(dot)shenavai(at)sap(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Shenavai, Manuel | 2024-07-16 11:38:40 | RE: Monitoring DB size |
Previous Message | David G. Johnston | 2024-07-16 05:42:14 | Re: Dropping column from big table |