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 1vSVms-00GPL5-2S for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 07:36:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vSVmr-00FKwU-0C for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Dec 2025 07:36:01 +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 1vSVmq-00FKwM-2J for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 07:36:01 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vSVmo-003nyx-1a for pgsql-hackers@lists.postgresql.org; Mon, 08 Dec 2025 07:36:00 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-64162c04f90so7450526a12.0 for ; Sun, 07 Dec 2025 23:35:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1765179355; x=1765784155; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+/HctfYI8uARZMfDreIY7sp8kGMBk/5cl7JDHT+NJ8I=; b=Vs2d7VwYp5RPO2avY5aMY0IqAi/e7cn6Qw4D6wTe7nYEJR9MHEZsbChMDLWgdzWLXg SCDoBvqPW8pitv6KGfqZQoakxSKd+IYiLuIneeJMUGeGGr84GEhzxIylLw8IsQo3LDJS 4FH5qWPsQNnGU1mGxqEY6mq1dSza1B2TOOH9UFUyKKEvdhPu4D5vKzf6jA1UrJN0u4L4 YyZmnezfSIaLTMTkNn2Ew0bq5VEr0OquLzpphHO/RMs5K4Mf9Qc0NnWz/GvWOSwgtsbA eKIniIq+/kZwwkHMZKmp3tv78ggJ63ynO+TMTOffVpjKix4X6PJnE4G7JV4B/pbDoDS6 GrAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765179355; x=1765784155; h=message-id:date:content-transfer-encoding:mime-version:comments :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+/HctfYI8uARZMfDreIY7sp8kGMBk/5cl7JDHT+NJ8I=; b=VrOYoQfBG5QZLBYHh8NVE0OhWiQCJhoYhZ/OLWsesqaL0naKd1Y0OV97FNNvvRfU9D pzqfNXphaunxH0HZmn+t1i+FGsnm6+xgj87s9D2EmEtfYRtACzmPc7ck9qZnWpU4DpGz BAFmPMzkni2+oBevWOEgWHtWNhqRO6NGyPBqZpvSjBPlOwWaSfy5ErcTOL2FLKpzLrN3 5hwIt8g+kO8AhBZdwhVDOdsRvZr4M8z2aFQJrCIXJoT5I9kjn9CsgIwm+V7eoB72p7YD tQe4BnoN5Gj6bG2/Wh51GNLl2xkdCA4m1HxPFX6pVS4GdzcwlfACQk/n/H9LL3AnrChQ c0zQ== X-Forwarded-Encrypted: i=1; AJvYcCXFE3EqGjDygG3iK1UGls+qnK63jnKGREm79Ua1xsyN8hfrsd3A3BPSsp3JL0xVO8KcI/y7vIl1CS+AhhAw@lists.postgresql.org X-Gm-Message-State: AOJu0Yzx9cwslDHxj3/kRRU+hPCiM09XhNtFotbruS7n32CgzfKhVCcq A24bOMXABFQttED8JxA9jaZPnTOHNwrYC801HG5xCl0jzM/tyeXOm4xa9VbAWzdGfaU= X-Gm-Gg: ASbGnctBQFcsrUVY5Num7v8qvV6lf6wRD59dCuZQNnzh7F5QePRGMppcUfgzSbMcCh+ RH9MqdfX+h5Qcrw1dFSpwD8dW+rEyAWGL9aMDgMy9bQE3v1s9f6Nv8LJ9BWvAt4gT5Gi11h7R+Y er3augYZX8uoRItpZ/RTiI3HM3/njMoJfZvGqinpAeiiDSLCqNJowe9//mI0ZSaNa0t3hDVxUE1 5VxtOe70M6KRnReghbw+ziT0hnjPzRvvmh02GLoyQhRUYbgPDT3fFcOwN9NIc5UDB1tGL+gLp5W 2jBYdP4tP/2iCc0yb+AF12WUEFUos6k85lIz8Pj6NDasq9jAnGxF30MUN+mMtqww6Boi17rvvCu Wrr98XrkCtrd2eE2UOxHoLLi2rl052uykOUYNHE0hPFChtMVGVqPxmf8bMnKRBvTOksdTZOUQbL DY6rNcmi3R8i0n/7933mklb8Ug4iO0PssL9mw= X-Google-Smtp-Source: AGHT+IF6jStKx7uD7Ql5E1D+TVWUdEf1TQ7JzebsW+Vn6bfvIcjsh7IQLNRkEHGb4qYRqmKTvTFNfQ== X-Received: by 2002:a05:6402:40c1:b0:641:8908:a558 with SMTP id 4fb4d7f45d1cf-6491a818982mr5469530a12.25.1765179355247; Sun, 07 Dec 2025 23:35:55 -0800 (PST) Received: from localhost (109-81-168-246.rct.o2.cz. [109.81.168.246]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-647b368de11sm10091435a12.18.2025.12.07.23.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Dec 2025 23:35:55 -0800 (PST) From: Antonin Houska To: Mihail Nikalayeu cc: Alvaro Herrera , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202510301734.pj4uds3mqxx4@alvherre.pgsql> <116433.1764870207@localhost> Comments: In-reply-to Mihail Nikalayeu message dated "Fri, 05 Dec 2025 01:03:00 +0100." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 08 Dec 2025 08:35:53 +0100 Message-ID: <14628.1765179353@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mihail Nikalayeu wrote: > On Thu, Dec 4, 2025 at 6:43=E2=80=AFPM Antonin Houska wr= ote: > > v26 attached here. It's been rebased and reflects most of the feedback. >=20 > Some comments on 0001-0002: > 1) >=20 > > cluster_rel(stmt->command, rel, indexOid, params); > cluster_rel closes relation, and after it is dereferenced a few lines aft= er. > Technically it may be correct, but feels a little bit strange. ok, will be fixed in the next version (supposedly later today). > 2) >=20 > > if (vacopts->mode =3D=3D MODE_VACUUM) > I think for better compatibility it is better to handle new value in > if - (vacopts->mode =3D=3D MODE_REPACK) to keep old cases unchanged I suppose you mean vacuuming.c. We're considering removal of pg_repackdb fr= om the patchset, so let's decide on this later. > 3) >=20 > > case T_RepackStmt: > > tag =3D CMDTAG_REPACK; > > break; >=20 > should we use instead: >=20 > case T_RepackStmt: > if (((RepackStmt *) parsetree)->command =3D=3D REPACK_COMMAND_CLUSTER) > tag =3D CMDTAG_CLUSTER; > else > tag =3D CMDTAG_REPACK; > break; >=20 > or delete CMDTAG_CLUSTER - since it not used anymore LGTM, will include it in the next version. > 4) > "has been superceded by" > typo ok. (This may also be removed, as it's specific to pg_repackdb.) --=20 Antonin Houska Web: https://www.cybertec-postgresql.com