Azure flexible Postgres storage capacity usage unknown

Safi 10 Reputation points
2025-01-29T18:00:45.42+00:00

Hello,

We are facing a problem which is baffling us, we have some databases on "Azure Database for PostgreSQL - Flexible Server" we summed the size of disk usage by these databases and included the managed dbs and came to a total of 121GB of total capacity purchased 256GBUser's image But when we check used storage in Azure UI we find that 174GB us used..

User's image which means there is a lost 54GB!!

And we are paying for it....

can you please help troubleshoot this issue and find what is taking all this space, we tried restarting the instance but no change.

Azure Database for PostgreSQL
{count} vote

2 answers

Sort by: Most helpful
  1. Safi 10 Reputation points
    2025-01-30T14:24:12.3633333+00:00

    Hello @Vijayalaxmi Kattimani

    Thank you for your reply,

    We don't have any (vaults, policies..) or anything like that, we simply created a basic flexible postgresql server, the backup function is the built in one which we can't disable.

    as for the resource I can confirm that its available, I just still don't know how I can get billed for 54GB which I don't see, there should be some explanation or purpose where these are being used and it should be plainly visible to the customer..

    0 comments No comments

  2. PratikLad 475 Reputation points Microsoft External Staff
    2025-02-04T13:10:16.67+00:00

    Hi @Safi,

    Thank you for reaching out to MS Q&A.

    In Azure UI Storage Used metrics Shows the storage that's used by the service can include the database files, transaction logs, and the server logs and when you are checking size of disk usage by these databases it shows only data files and do not include transection logs. Server logs in Azure Postgres server are initially disabled by default.

    As I See for my Azure Postgres DB where I haven't created anything, I See the Db size as per Azure UI Storage used metrics initially 2.3 GB and now it's around 2.7 GB as per below image.

    enter image description here

    So, the difference is around 400 MB.

    In Azure UI there is another metrics called Transaction Log Storage Used which shows the Amount of storage space that's used by the transaction logs.

    it is initially 112.7 MB and now it is 486.5 MB as you can see below:

    enter image description here

    from above we can see the difference is around 380 MB

    As per above the difference between Storage Used and Transaction Log Storage Used is around same. so, in your case the difference you see in your size of disk usage by these databases and Storage Used in Azure UI is the space user by Transactional log and Server logs (if it is enabled).

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-monitoring

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.