public inbox for [email protected]  
help / color / mirror / Atom feed
From: Keith Fiske <[email protected]>
To: Ron Watkins <[email protected]>
Cc: [email protected]
Subject: Re: Allocated size of DB?
Date: Mon, 17 Oct 2022 12:51:49 -0400
Message-ID: <CAODZiv7J7Fz-XtrTkssaXWbtLhhKKEvwN=ZWvfgZ6dMov4ZUAA@mail.gmail.com> (raw)
In-Reply-To: <CAPdrarobvEJjubL_0UOn9f4BmuhSPzX_Tn3PWoT+je8pRp6_HQ@mail.gmail.com>
References: <CAPdrarobvEJjubL_0UOn9f4BmuhSPzX_Tn3PWoT+je8pRp6_HQ@mail.gmail.com>

On Mon, Oct 17, 2022 at 12:48 PM Ron Watkins <[email protected]> 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?
>
> --
> Ron Watkins, K7DOG
> 602.743.5272
>


There is no unused space in PostgreSQL like this. It will use all the
available space on disk that you give it. It is not like Oracle where you
can reserve segment sizes.

So for this, you'd just monitor your available space on disk for the
filesystem that PostgreSQL is using.

-- 
Keith Fiske
Senior Database Engineer
Crunchy Data - http://crunchydata.com


view thread (3+ messages)  latest in thread

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: <CAODZiv7J7Fz-XtrTkssaXWbtLhhKKEvwN=ZWvfgZ6dMov4ZUAA@mail.gmail.com>

* 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