public inbox for pgsql-performance@postgresql.org  
help / color / mirror / Atom feed
From: James Pang <jamespang886@gmail.com>
To: pgsql-performance@lists.postgresql.org
Subject: table bloat very fast and free space can not be reused
Date: Sun, 19 Apr 2026 09:28:31 +0800
Message-ID: <CAHgTRff=eH1GwVb=ENMzX6hBEajdTccCQbeVRkj4OtYLm69a9g@mail.gmail.com> (raw)

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


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jamespang886@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: table bloat very fast and free space can not be reused
  In-Reply-To: <CAHgTRff=eH1GwVb=ENMzX6hBEajdTccCQbeVRkj4OtYLm69a9g@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox