Re: Allocated size of DB? - Mailing list pgsql-novice

From Laurenz Albe
Subject Re: Allocated size of DB?
Date
Msg-id bb6a6cec2eeed4a70f64636f23233af7792b29bc.camel@cybertec.at
Whole thread Raw
In response to Allocated size of DB?  (Ron Watkins <rwatki@gmail.com>)
List pgsql-novice
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



pgsql-novice by date:

Previous
From: Keith Fiske
Date:
Subject: Re: Allocated size of DB?
Next
From: Simon Connah
Date:
Subject: Re: Just switched to Mac - Postgres.app or Homebrew or some other distribution?