Re: Size of /pgdata

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Raj <rajeshkumar(dot)dba09(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Size of /pgdata
Date: 2026-06-17 11:34:23
Message-ID: ce3c4c54edfd1e5d451bc0605b71fd94f99215eb.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 the difference.

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message William Sescu (Suva) 2026-06-17 13:59:15 AW: Size of /pgdata
Previous Message Raj 2026-06-17 06:17:24 Re: Size of /pgdata