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

From Laurenz Albe
Subject Re: Size of /pgdata
Date
Msg-id ce3c4c54edfd1e5d451bc0605b71fd94f99215eb.camel@cybertec.at
Whole thread
In response to Re: Size of /pgdata  (Raj <rajeshkumar.dba09@gmail.com>)
Responses AW: Size of /pgdata
List pgsql-admin
On Wed, 2026-06-17 at 11:47 +0530, Raj wrote:
> The file count is same between them..but the file size varies.
>
> For example, assume node1 has issue and node2 is clean.
>
> 1. On both nodes file count is 76
> 2. File size varies for some of them
>
> Each files are either 1GB or 2GB and some or them are 1.2gb or 1.5gb or between 1-2gb ....by looking at files..
>  In the problematic node, some of the 1gb files in node2  shows 2GB in node1...and also file size differences. making
thedifference. 

That is highly suspicious.

What do you get if you run

  SHOW segment_size;

Unless you built PostgreSQL yourself after changing the segment size,
it should be 1GB.  But then it would be impossible for some segment
to be bigger than 1GB.

Are you using some weird file system that reports file sizes wrongly?

What does "ls -l" on one of these big files show?

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Raj
Date:
Subject: Re: Size of /pgdata
Next
From: "William Sescu (Suva)"
Date:
Subject: AW: Size of /pgdata