Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEGxu-003q88-0z for pgsql-performance@arkaria.postgresql.org; Sun, 19 Apr 2026 01:28:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEGxs-00E4lE-29 for pgsql-performance@arkaria.postgresql.org; Sun, 19 Apr 2026 01:28:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEGxs-00E4l5-0u for pgsql-performance@lists.postgresql.org; Sun, 19 Apr 2026 01:28:48 +0000 Received: from mail-dy1-x1333.google.com ([2607:f8b0:4864:20::1333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEGxp-00000001uNE-3FLx for pgsql-performance@lists.postgresql.org; Sun, 19 Apr 2026 01:28:47 +0000 Received: by mail-dy1-x1333.google.com with SMTP id 5a478bee46e88-2d9916deb14so3663059eec.0 for ; Sat, 18 Apr 2026 18:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776562122; cv=none; d=google.com; s=arc-20240605; b=c8ktRt+X+eLjrPyRqM71B40txuQETt44cP68mnLf8RrGTARXQdHQ1079D3flsnZD5K cSJy32EfYSBZoxd/9R1x8nYJlizGTA+7orsiCKbwb3EHihWRkK3kaqO28Etn/g/smPcV wPEs5Nsctl0nwPpoguImbhn02eOt73T7fZZ5LXlBv7aigzIkM7raZmWmId7kTxIvdRLS wFExxgDbKvviwEE7nM3n7xtJ3PIcPiOYzRAmcv8UBm/GOyDJ/HTjp8CAbCFwN1AACiWY JHButpH2ZUCdUu0Cd4YEFr0jDH153kUdsBlpjYtdEwIPaH6CP1h2d7rEJX0CvcVM+kcq Se4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=tX5pUu4/CyZepqLqLRA9i1n3SX0S5tI0j0zU7WsLbg8=; fh=z/JQ2tSXVGoYKKvtD/yyy3g3xqdpsR82Ngoo7GcsvL4=; b=O1qBn3MWbkPptbYsS5qRGFTGw4jwYJ3H3U2e/c8rgFIG8QUg3bPeLgXge48AV3PbQS A84mtYp2TtBgwd+5XCM23Uv/r/9yxPDduUCboH2BmjJiqU4xwAw/v4dbG4DBAoMHOKgj Zm3yynfuEbNip7LBMZzGKbX1YornX53xGZA63stU8yggCOsjE1LV64xZHMhMM1qS3Bnj Xu1U1bp20PVBx8QzhceL5IBXaWYMZGHhdZyVU4pm9C8ZyvL2ZALKbc60FaXlehEkhGFt 6fZvIQEx+qC62u7EKKpFTqyrmJOCARhxqd0U0rOrMS8ZCPchGst/UXq5Kq8W0uhdQ5AB DGKg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776562122; x=1777166922; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tX5pUu4/CyZepqLqLRA9i1n3SX0S5tI0j0zU7WsLbg8=; b=FjtVZYItsyKfmVLUJweXUFGUQYw5Mnblts7A0kIg1tDLQpOJ5/G09WJ3LWAr6muX9c Lvmt93v6gSFhSquNGHk1865fcbwoWGoAZ4WbPyuwMo5KPkFdOkvltuZvDkek+F32E+r9 u+7dE5+SJvTbNqzZg2guijP0qaahMozHL0Z8jtVPu23R/Jr8uU/9eIINJZt+MHuRJYb/ Q5G7cw/ixZRs5G+HlZtceZ+lT0unEjl3zEqAGP30gqqLqasZB6mgCbmXOTYDSZeJKyc0 BTWyyq5OiXcsF7ej4lIHxYR2sRUkyr+J5cRxbuDsArGtYULsGI9V4Vg9M3hrFr54TxWn JSAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776562122; x=1777166922; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tX5pUu4/CyZepqLqLRA9i1n3SX0S5tI0j0zU7WsLbg8=; b=qhdw5fnAQ9sU6m8UObfZUuX7kjgZIumkXjUa544cnYMMeyyqF24KGFIRphzFL9v5IM YcMFDl5Ts0zU5G6ccxKmZ+UjSYePOn9l1PcD1DcSL5yFfJGDDNcoxuER0D0tggkmpdIV oLaAPojyy90kYhj4KSrSnfA4PEw4cTcOt4sjq/KZBlkkMFdBGa5Vbdu9pBvm8NVB2dfW d6yeFDzKzK4p6pktZ0a55XfdIbxo7oatjoBYHzBHXhTkcs3GiC4sxHJlh81Mr49IFaGn TnnpfFoAWereaSzhLFILCMkd0MXE/5ApS/AzIVbwT1/MSnVOUmNUnkr7GgVM/VyG8HlB cr2Q== X-Gm-Message-State: AOJu0Ywd0m/Zpw00MvAeSnIr/yU9JovAr32U5O9rle04UDzpk86qvJYt yjcr4ePwKCnCSyv7w1rXprHoT5nIpO+l5J/4TMx+JzEZh6Yh77LDTVIX05Xe/OCYgsOpGTEvUuF GWJRXsGH7/mJLDCQFJhNs3nKx5+i2gVKqFg== X-Gm-Gg: AeBDieuKM2WlIyUPVjcDDxwpZSnOVd3ye7+JjeHPtnI6Tx6R6AzA+VIQXy+eA1tOHq7 Q3yzzo3j/82fJTeT3sELA6iYVl0NhdErpgeRYU5PzjHDiLYAtCp9Rl2uZF0niJZRpwJ5K07yw4u JkFlf9/jZx4I6bCspY04unOKklGlEH4FCGqZIW9LkCiruyhjY4/Yj5stJ1fh5JqTyWtI41UKSz3 PQ1c7W52z3ghnb7WMrzg5PMcxbf8WQmbxEL0GfTWk6AB6KSHH3aYWa3u6Jc3PSnW6qpb+1ug3iV Q030s3jlW+tjSsGyxQ== X-Received: by 2002:a05:7300:5728:b0:2be:2953:fd74 with SMTP id 5a478bee46e88-2e479723e13mr4202831eec.14.1776562121555; Sat, 18 Apr 2026 18:28:41 -0700 (PDT) MIME-Version: 1.0 From: James Pang Date: Sun, 19 Apr 2026 09:28:31 +0800 X-Gm-Features: AQROBzAzA-CtiTVmpDLIuE-BPtefCtzR7DjllgHMC5khPmROMx-zKef4gcSIWBo Message-ID: Subject: table bloat very fast and free space can not be reused To: pgsql-performance@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002d41cd064fc61a56" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002d41cd064fc61a56 Content-Type: text/plain; charset="UTF-8" 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 --0000000000002d41cd064fc61a56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
experts:
=C2=A0 =C2=A0 =C2=A0source database v14 ,=C2= =A0 pglogical extension 2.4.5 replication to new 17, source table very freq= uent UPDATEs /DELETES /INSERTS and has two text and jsonb. in source databa= se, application update/delete/insert through SQL, table size did not increa= sed quickly. but in target pg v17 , by pglogical apply, we found table incr= eased very quickly , table size got doubled in days.=C2=A0=C2=A0
= =C2=A0 =C2=A0 Vacuum analyze did not help , only vacuum full can help. pgst= attuple show most of space are free space , that much more than source.=C2= =A0 it looks like these replicate DML always asking new pages instead of re= use existing freespace.=C2=A0
=C2=A0 =C2=A0=C2=A0
Thank= s,

James
--0000000000002d41cd064fc61a56--