public inbox for [email protected]
help / color / mirror / Atom feedFrom: Laurenz Albe <[email protected]>
To: Ron Watkins <[email protected]>
To: [email protected]
Subject: Re: Allocated size of DB?
Date: Tue, 18 Oct 2022 04:48:28 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAPdrarobvEJjubL_0UOn9f4BmuhSPzX_Tn3PWoT+je8pRp6_HQ@mail.gmail.com>
References: <CAPdrarobvEJjubL_0UOn9f4BmuhSPzX_Tn3PWoT+je8pRp6_HQ@mail.gmail.com>
On Mon, 2022-10-17 at 09:48 -0700, Ron Watkins wrote:
> I have a request to supply business owner with both the available size of DB as well
> as the used size of the DB. I have been able to locate the used size, but I don't see
> any way to query the available size (used + unused space). How can I find that in PSQL?
The available size would be the size of the file system that contains the data directory.
You cannot query that size from the database; you have to ask the operating system.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Allocated size of DB?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox