table bloat very fast and free space can not be reused

From: James Pang <jamespang886(at)gmail(dot)com>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: table bloat very fast and free space can not be reused
Date: 2026-04-19 01:28:31
Message-ID: CAHgTRff=eH1GwVb=ENMzX6hBEajdTccCQbeVRkj4OtYLm69a9g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-performance

experts:
source database v14 , pglogical extension 2.4.5 replication to new
17, source table very frequent UPDATEs /DELETES /INSERTS and has two text
and jsonb. in source database, application update/delete/insert through
SQL, table size did not increased quickly. but in target pg v17 , by
pglogical apply, we found table increased very quickly , table size got
doubled in days.
Vacuum analyze did not help , only vacuum full can help. pgstattuple
show most of space are free space , that much more than source. it looks
like these replicate DML always asking new pages instead of reuse existing
freespace.

Thanks,

James

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Christophe Pettus 2026-04-19 03:56:52 Re: table bloat very fast and free space can not be reused
Previous Message Jeff Davis 2026-04-14 20:42:47 Re: Significant performance issues with array_agg() + HashAggregate plans on Postgres 17