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 1wwe4z-0026qB-1o for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Aug 2026 11:03:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wwe4y-003FQq-1m for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Aug 2026 11:03:32 +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 1wwe4y-003FQY-0n for pgsql-bugs@lists.postgresql.org; Wed, 19 Aug 2026 11:03:32 +0000 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wwe4v-000000006sh-1ojZ for pgsql-bugs@lists.postgresql.org; Wed, 19 Aug 2026 11:03:31 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1787137407; cv=none; d=strato.com; s=strato-dkim-0002; b=f2iWGMjk3WZoUvIhziRME21/pydo33zTbTfCeGUFhvtswAtzVUY4Zji5CZocGF0lPj sS969ald0FtD8RvSDLUbcF8OjBGXfZ29aYNSKVIJvOIMNGmNpWRpfSlRoiotLVQ4zne9 UPjLf7N0LfWBJIX+wl//6u+TiHJ190nxcGbxXlm0fL4F94xIyGJfwTtAYKzercs25uXU w385HLsWoKcW9A+HXjhXhVO3R//9irggCKWT7hYEll/tlacbnNUQxxdd//l6IdIRhIC8 Ywz5ef81SjZfU934Cw6Jd/b5EzeFQ+QFDEMwlNkFFMuzqkYDEvn7jixsgMfFggwdzwOB ky4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1787137407; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=BDEE6/3uqUzlyq7Hz+pfTlvOqVzW/LbGjzsJVP/DeRg=; b=lmEESm7YCVBM9qKjrpTUuZT416+lN3sYiHEOZLr4ndXP+aEQPxdgp6kDhokjLgjz4o JR9M9E+bFYCcG1OmNwpxAyIYfiUY7fc9epAUVvir4SzB0tdgG/MR97PxvN1nGuc7MhgS rv02mf+1nvvP7uvb19aIWGy0Z0TjwwFyJY1N19Kty9twxPuOm4vOAVz1IQiMch8XR3YP 6yzQkAriETxybf/FR671IxE+64jgpNOVBeSiaN4ofeMWuZbum4+4vIEzwDUxQmGBZVdH 2zN8J1vtQzcqK2Ez6Vw3O55wh8fgMAATFYXf4WY1feFeG6BUAmab0atV+4NEGlw4JkTZ PIDQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1787137407; s=strato-dkim-0002; d=jbitc.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=BDEE6/3uqUzlyq7Hz+pfTlvOqVzW/LbGjzsJVP/DeRg=; b=M3y4WnauYfdJv+kc2PI2nydHWgsgHoklTESFQN8/gPbcjVHiBQ0UtxMHFU+mzrMscr SaDxPmrfMiMaUZr9IbdPauBodbfIIWtzxCWvDWCSob7OBCc4P0lERmaolikEeBMXlnNg q0QPykWQW56U9E/Esqsnp5IytB8h01DdU5vH66a8i9CDvyHEL9HUL52OkEnNBCz85aNc aV9k8gYHDr3gNJLUALfzQ4lred8Gwypnd79QzJbJMWxFUPNhgX82x/g0+5KLU9hJ2JpB HxqytZ9N5O0VUxBgCauv8IOSdbpLY7BylismMvuP2nKZAcexbgFojpqgoJZfzqZrnZ8V R/xw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1787137407; s=strato-dkim-0003; d=jbitc.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=BDEE6/3uqUzlyq7Hz+pfTlvOqVzW/LbGjzsJVP/DeRg=; b=CnH7U5BUAOqmKoRI1tVy+ar3Gg4/4Eb/R7WxAxaPKion4BCkGNbuG+ffqBFu/TlN0m BX33lO803g3EU8rNvADA== X-RZG-AUTH: ":Jm4kf0Khb/yzNwyGkr6R611+JpIbxpU/vUdKufVE/BwSQoubt/s/N4gP" Received: from [11.1.1.169] by smtp.strato.de (RZmta 55.6.2 AUTH) with ESMTPSA id 5bab4927JB3R6ws (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Wed, 19 Aug 2026 13:03:27 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------294THNH93ZgfvoVb0N0vS01j" Message-ID: <5b73fd85-3066-4e41-b306-bfa8f893a239@jbitc.de> Date: Wed, 19 Aug 2026 13:03:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: de-DE, en-US To: pgsql-bugs@lists.postgresql.org From: Jochen Bandhauer Subject: repack with verbose output: not showing the number of removable row versions when using USING INDEX or CONCURRENTLY option Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------294THNH93ZgfvoVb0N0vS01j Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, on: PostgreSQL 19beta3 (development build (./configure --enable-debug --enable-cassert CFLAGS='-O0 -g3')) when using repack with the option CONCURRENTLY or when using USING INDEX the verbose output does not show the number of removable row versions. When using the command without these options the number of removable rows are shown. Complete Version: PostgreSQL 19beta3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4), 64-bit Test Case: -- create table and data drop table if exists t; create table t (id bigint primary key, col1 bigint); create index i1 on t (col1); insert into t select generate_series(1, 100000); -- commands repack (verbose) t;  -- found 0 removable => ok update t set col1=1; repack (verbose) t;  -- found 100000 removable => ok update t set col1=1; repack (verbose,concurrently) t;  -- found 0 removable => is this correct? update t set col1=1; repack (verbose) t using index i1;  -- found 0 removable => is this correct? update t set col1=1; repack (verbose,concurrently) t using index i1;  -- found 0 removable => is this correct? -- output: mydb=# repack (verbose) t; INFO:  repacking "public.t" in physical order INFO:  "public.t": found 0 removable, 100000 nonremovable row versions in 443 pages DETAIL:  0 dead row versions cannot be removed yet. CPU: user: 0.14 s, system: 0.00 s, elapsed: 0.14 s. REPACK mydb=# update t set col1=1; UPDATE 100000 mydb=# repack (verbose) t; INFO:  repacking "public.t" in physical order INFO:  "public.t": found 100000 removable, 100000 nonremovable row versions in 984 pages DETAIL:  0 dead row versions cannot be removed yet. CPU: user: 0.23 s, system: 0.00 s, elapsed: 0.23 s. REPACK mydb=# update t set col1=1; UPDATE 100000 mydb=# repack (verbose,concurrently) t; INFO:  repacking "public.t" in physical order INFO:  "public.t": found 0 removable, 100000 nonremovable row versions in 1082 pages DETAIL:  0 dead row versions cannot be removed yet. CPU: user: 0.37 s, system: 0.00 s, elapsed: 0.38 s. REPACK mydb=# update t set col1=1; UPDATE 100000 mydb=# repack (verbose) t using index i1; INFO:  repacking "public.t" using index scan on "i1" INFO:  "public.t": found 0 removable, 100000 nonremovable row versions in 1082 pages DETAIL:  0 dead row versions cannot be removed yet. CPU: user: 0.39 s, system: 0.00 s, elapsed: 0.40 s. REPACK mydb=# update t set col1=1; UPDATE 100000 mydb=# repack (verbose,concurrently) t using index i1; INFO:  repacking "public.t" using index scan on "i1" INFO:  "public.t": found 0 removable, 100000 nonremovable row versions in 1082 pages DETAIL:  0 dead row versions cannot be removed yet. CPU: user: 0.56 s, system: 0.01 s, elapsed: 0.59 s. REPACK mydb=# Thanks Jochen -- Mit freundlichen Grüßen Jochen Bandhauer +49 (0)176 29390012 www.jbitc.de --------------294THNH93ZgfvoVb0N0vS01j Content-Type: text/vcard; charset=UTF-8; name="jb.vcf" Content-Disposition: attachment; filename="jb.vcf" Content-Transfer-Encoding: base64 QkVHSU46VkNBUkQNClZFUlNJT046NC4wDQpOOkJhbmRoYXVlcjtKb2NoZW47OzsNCkZOOkpv Y2hlbiBCYW5kaGF1ZXINCkVNQUlMO1BSRUY9MTtUWVBFPXdvcms6amJAamJpdGMuZGUNClVS TDpodHRwczovL3d3dy5qYml0Yy5kZQ0KVEVMO1RZUEU9d29yaztWQUxVRT1URVhUOis0OTE3 NjI5MzkwMDEyDQpUWjpFdXJvcGUvQmVybGluDQpFTkQ6VkNBUkQNCg== --------------294THNH93ZgfvoVb0N0vS01j--