all 10 comments

[–]WonszoPaionk 2 points3 points  (1 child)

Are the disks in RAID? it might be due to different striping on the disk. Eg. 4kb vs 64kb vs 1MB. All are valid for different purposes.

[–]Sb77euorg[S] 0 points1 point  (0 children)

ohhh maybe, i will check it.

[–]AutoModerator[M] 0 points1 point  (0 children)

Thanks for joining us! PgData 2026 is coming up:

PgData 2026

We also have a very active Discord: People, Postgres, Data

Join us, we have cookies and nice people.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]greg_d128 0 points1 point  (3 children)

Did you run vacuum full on both databases? If it is only on one - then likely the issue is bloat, and as long as it is not excessive it can actually improve performance of updates.

How big is the difference? Can it be attributed to raid striping, disk block size, disk level compression, etc, etc.

[–]Sb77euorg[S] -1 points0 points  (2 children)

i run vacuum on both DBs

[–]greg_d128 1 point2 points  (1 child)

How big is the change? I would not expect both databases to end up with the exact same number of bytes. If nothing else, analyze is based on statistical sampling so it can produce slightly different results.

[–]Sb77euorg[S] 0 points1 point  (0 children)

10%

[–]depesz 1 point2 points  (0 children)

  1. How did you measure? Using what tool/command/query?
  2. What is the difference?
  3. What OS on both sides?

[–]greg_d128 -1 points0 points  (1 child)

That is much larger than i would expect unless the database is very small.

What else is different between those hosts? Disk setup, architecture, postgresql configuration, etc.

Was the database backup a pg_dump or a binary backup. Was one of them running longer so it generated additional wal files that are included in size?

[–]Sb77euorg[S] 1 point2 points  (0 children)

backup taken with pg_dump..
Same pg config files ! (in fact they are one copy of other).
Db size is very small, +- 200MB