public inbox for [email protected]
help / color / mirror / Atom feedFrom: Ron Johnson <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: Re: Size of /pgdata
Date: Sat, 13 Jun 2026 08:39:41 -0400
Message-ID: <CANzqJaB7jSN7RQruqzBPnKKNkSMTKn7s5C5jGZDOk=M79hB9ug@mail.gmail.com> (raw)
In-Reply-To: <CAJk5Atb1v7=x-wsS-tL7Lxs7yXQy8Ng-GhXG+zzZ1gVAx=Xzjw@mail.gmail.com>
References: <CAJk5Atb1v7=x-wsS-tL7Lxs7yXQy8Ng-GhXG+zzZ1gVAx=Xzjw@mail.gmail.com>
On Sat, Jun 13, 2026 at 2:48 AM Raj <[email protected]> wrote:
> Hi all,
>
> I am using 17.9 version.
>
> I see suddenly du -sh /pgdata/17 shows 930GB. Total allocated is 1TB.
>
Don't stop with "-s". Drill deeper:
du -hd2 /pgdata/17
>
> I checked the db size using \l+ and also pg_total_relation_size and size
> for particular db is 630GB. Ignoring postgres and template dbs as they are
> in KBs.
>
Use pg_database_size() instead, since pg_total_relation_size() might miss
something.
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
view thread (20+ 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]
Subject: Re: Size of /pgdata
In-Reply-To: <CANzqJaB7jSN7RQruqzBPnKKNkSMTKn7s5C5jGZDOk=M79hB9ug@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