| From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
|---|---|
| To: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Size of /pgdata |
| Date: | 2026-06-13 12:39:41 |
| Message-ID: | CANzqJaB7jSN7RQruqzBPnKKNkSMTKn7s5C5jGZDOk=M79hB9ug@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Sat, Jun 13, 2026 at 2:48 AM Raj <rajeshkumar(dot)dba09(at)gmail(dot)com> 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!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Grimm | 2026-06-14 11:36:42 | Cluster of 3 instances in distinct datacenters |
| Previous Message | Bhanu Prakash | 2026-06-13 07:19:21 | Re: Size of /pgdata |