public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Raj <[email protected]>
To: Pgsql-admin <[email protected]>
Subject: Re: Size of /pgdata
Date: Sun, 14 Jun 2026 21:30:00 +0200
Message-ID: <[email protected]> (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, 2026-06-13 at 12:18 +0530, Raj wrote:
> I took one big sample table which is 73GB, and using relfilenode(327683) I tried finding the
> underlying file size du -sh 327683*  and able to find the total size the files occpuing and
> found 113gb.......so for one table itself it is 40Gb additional...

Investigate more:

- Make sure that you don't get files from another filenode like 3276838.

- If the relation (as shown by pg_relation_size('tablename')) is 73GB,
  it should consist of 327683, 327683.1, 327683.2, ..., 327683.72.
  Check what additional files there are.

- Extra files can be left behind after a crash.  Were there any?

Yours,
Laurenz Albe






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], [email protected]
  Subject: Re: Size of /pgdata
  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