Re: Size of /pgdata - Mailing list pgsql-admin

From Raj
Subject Re: Size of /pgdata
Date
Msg-id CAJk5AtburOY2ugaH-6+8OHgOBwyyaq1V3LLozCAf57c5jtmR+w@mail.gmail.com
Whole thread
In response to Re: Size of /pgdata  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Size of /pgdata
List pgsql-admin
No, I am using the command du -ch 327101*

On Mon, 15 Jun 2026, 01:00 Laurenz Albe, <laurenz.albe@cybertec.at> wrote:
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

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Size of /pgdata
Next
From: Laurenz Albe
Date:
Subject: Re: Size of /pgdata