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 1w2CDI-0004hF-1D for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 17:58:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2CDG-00BkWl-1y for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 17:58:47 +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 1w2CAD-00Bhqz-39 for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 17:55:38 +0000 Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2CAB-00000000Ssx-3aGc for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 17:55:38 +0000 Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-7991db3dc98so45489297b3.0 for ; Mon, 16 Mar 2026 10:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773683734; cv=none; d=google.com; s=arc-20240605; b=M+qmpC0GTX2yv2/bT7NrKTM1vdStzhVfCmtlz9EGLTa+nc2cZZZy5KAVqyVQq6C9PD LqSakRjpjahPwPT4uiiYsjx9tTBEtB6n37jrRiyqLgmiciBa5FlJ0VgmeXYV4koA2FaH rrsTLSgqhEOha66z1uLG0DdRcplWUZfcWl5Uxvrh5zyGnJ2DCF0ytgKs5LuzyHrw4kjy 8o/CY83daXuhjGXrrt4G/tOKpPczSOll6gkiv0hbyTkZFmeV4DGJpelWboSmFUar5KK2 rnpJ+7+1Yzn/2PXEnBEy3KdmekWZhg5FNxXqI0BHvRyyChfNlvC0X2ImwAe1WOSjbGrT So7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=xGRP0Y0VIarlgwbRfQ9SHx90MRKdzw1oHtK4i2uMqZA=; fh=UF7Ue0tW8XfA97CtJCbPE/MkWX4YlcNASZ1alrOBHo4=; b=DMnTCb8HwP1CgbXnPbOUY6U5PpfqII8AIQQJtSywkgWCplBdetvR2u7zxQBx0/vbdI FSkkCsnWVNNr15YkCLsYDlOtRQy4SnTZ+8iN8W9n4RetjRdIR29dbLT+mlkaHvx9kuLX 6sS3Pq7EPTAhq/+xn9+B8k8Bm4gJBGGk48m21sVD4hDym85CIbAi5+IQ0ORYu/h36UQa k/ATVE2CFV0JHDXY6LFRcqsNjMfJ+1rT7kHsu7poWWQICy8Pp6tq+hNMU85eLLzBuACv F0FEmtxVBZ9mWidTQxCtXlC+NCBDfPAanDHUt7Qpmmfiudxg2eFOjGWElz/BavIVDnZw aAuQ==; 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=20230601; t=1773683734; x=1774288534; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xGRP0Y0VIarlgwbRfQ9SHx90MRKdzw1oHtK4i2uMqZA=; b=GMe3DtPxQ/Hx4q4hj72uu+du6N7ECxsKxkVRjneA/3uAxDjcOLuNp8ew0OIZf8GAQl pX/3ykwbnCawqjQrgKk34FfuqjcA/sl3owNZViuuj0ItYKiVJ0bXyaH12MkZCRxp9aaJ /h09wb9mGVKWgB116yE8CNLG3j8Tl77Qras7xktBWe4tg+fnwLcVJ7XsJW5YTg04qBZG hxM9571gU9uYWWUlrCZljD6r8UrcY4qRxrb5gV+F4jnelbdb/bnIseBzHZNj6q481LeQ JUB4+yUL/5KaTS1W3P8QmwPz83baxphaaYCwK1EPx4kRegl/EffnyVvBzsbX4f57A0gL ioIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773683734; x=1774288534; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xGRP0Y0VIarlgwbRfQ9SHx90MRKdzw1oHtK4i2uMqZA=; b=R24VaLbjou8AqSNweMYGhM1WWiybzFs4irYoQECPTgQl6UvFhGeNDkyvOLoQSm/Uli /t9RcfpGv0cLP43wzFXoCAyE2PqjUFe/IhjmsTW4qkdcy0zNqaQbru/8GsBh2XDl12f+ 0MUQ12uXJR55PzvV2/N3dldmJLPgMJ2IfqujRPV1YiW6MaY+tQcerLyUAN8F2dvYFuAI ftsp8udJAQcM/beZcLmhS/O3qdGp/G9acqMBfNScrwqPUZoYzMAM3M85Mmfer+Q3+MRW K0apWpE545ucz1WVHRLFeuYt/Yl0AvH2SDfTBivYH8M9dETaVHJQxMsB6JMXp/ruKCJH jdRw== X-Forwarded-Encrypted: i=1; AJvYcCX6RVuLO7H2bi/GrY5R68tQIjOB2SUknlH0wgS72hQVGOZNN4pW+fyYk/0B2LkqMjFQqQBtvZzdJz0Cwsvw@lists.postgresql.org X-Gm-Message-State: AOJu0YyAE7yBkxZNmRgdXhAPZY/rZazReOgqAxPrlTxDoujs7v4jc354 RMb+nRccW1oes8JzoBmdABVdyzm2Z2AUoYJ3bUjzpi0KbM6ElReHVTm3v3wl45slWka+VU/e/5Y UiwVPTWqoM4KFS9yYqt7mnjcI925ewTg= X-Gm-Gg: ATEYQzwNz70hoc62WwTmb/5E0KGeD5+yUhDmOpOLiUbVso30UIzMzlscncmIpr7kRIw HJAPFMmp83udYXClyJFqSkVwqlZ9Tc+spZENbfwt98iE45dVz2bNRn7WfiPhofU4t5opqL9Es1l +PhrUZXONKW7OWHrTzfpkiT2oI9QR8MbAcWeCJbG4rTQ1JOy5hAxtm2vbuP2PhHKrB1qvH4GzRZ y2wsWl/a/n7TxFmKc5qS8WQirphiKIqHzxMa2xlSpcNI7cMByrWoJzjDoGeFuk8dAOGt2evDqPX /PMBkANw X-Received: by 2002:a05:690c:c511:b0:79a:4fe4:ff3d with SMTP id 00721157ae682-79a4fe5093cmr44342237b3.39.1773683734289; Mon, 16 Mar 2026 10:55:34 -0700 (PDT) MIME-Version: 1.0 References: <202603161558.mtxrlg3salpb@alvherre.pgsql> In-Reply-To: <202603161558.mtxrlg3salpb@alvherre.pgsql> From: Mahendra Singh Thalor Date: Mon, 16 Mar 2026 23:25:22 +0530 X-Gm-Features: AaiRm51LLczVjaTaYsNSFTBVeYqj99p67VUdTAInxshJIoCkJlOPIdmfEwnS81U Message-ID: Subject: Re: Adding REPACK [concurrently] To: Alvaro Herrera Cc: Robert Treat , Matthias van de Meent , Antonin Houska , Mihail Nikalayeu , Pg Hackers Content-Type: multipart/alternative; boundary="000000000000ed1fa2064d27ecbf" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ed1fa2064d27ecbf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 16 Mar 2026 at 21:33, Alvaro Herrera wrote: > > On 2026-Mar-16, Robert Treat wrote: > > > I'm never excited about adding GUCs, but at first thought this seems > > like a decent work-around; most people are unlikely to run multiple > > repack concurrently's, but they can if needed. (I think the most > > likely use case is on clusters using the "database per customer" > > pattern, but if we have the guc, people will have a means to deal with > > it). > > I wonder if, longer term, it would make sense to do away with the > max_replication_slots GUC (and this new one) altogether, and use dynamic > shared memory for slots instead. There's of course always the danger > that people would accumulate arbitrary numbers of slots since they would > never be forced to check. But that may be a lesser problem than having > to gauge these GUCs with any care. > > -- > =C3=81lvaro Herrera 48=C2=B001'N 7=C2=B057'E =E2=80=94 https://www.EnterpriseDB.com/ > "You're _really_ hosed if the person doing the hiring doesn't understand > relational systems: you end up with a whole raft of programmers, none of > whom has had a Date with the clue stick." (Andrew Sullivan) > https://postgr.es/m/20050809113420.GD2768@phlogiston.dyndns.org > > Hi all, I was reading this thread and was doing some tests. postgres=3D# create table test1(a int); CREATE TABLE postgres=3D# create table test2(a int); CREATE TABLE postgres=3D# *vacuum full test1 , test2;* VACUUM postgres=3D# repack test1; REPACK postgres=3D# repack test2; REPACK postgres=3D#* repack test1, test2;* ERROR: syntax error at or near "," LINE 1: repack test1, test2; ^ I was not expecting any error but maybe I am missing something (some patch needs to be applied to test this query?). Thanks and Regards Mahendra --000000000000ed1fa2064d27ecbf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 16 Mar 2026 at 21:33, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:<= br>>
> On 2026-Mar-16, Robert Treat wrote:
>
> > I&= #39;m never excited about adding GUCs, but at first thought this seems
&= gt; > like a decent work-around; most people are unlikely to run multipl= e
> > repack concurrently's, but they can if needed. (I think = the most
> > likely use case is on clusters using the "databa= se per customer"
> > pattern, but if we have the guc, people = will have a means to deal with
> > it).
>
> I wonder i= f, longer term, it would make sense to do away with the
> max_replica= tion_slots GUC (and this new one) altogether, and use dynamic
> share= d memory for slots instead.=C2=A0 There's of course always the danger> that people would accumulate arbitrary numbers of slots since they w= ould
> never be forced to check.=C2=A0 But that may be a lesser probl= em than having
> to gauge these GUCs with any care.
>
> -= -
> =C3=81lvaro Herrera =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 48=C2=B001'N 7=C2=B057'E =C2=A0=E2=80=94 =C2=A0https://www.EnterpriseDB.com/
> "Y= ou're _really_ hosed if the person doing the hiring doesn't underst= and
> relational systems: you end up with a whole raft of programmers= , none of
> whom has had a Date with the clue stick." =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(Andrew Sullivan)
> https://po= stgr.es/m/20050809113420.GD2768@phlogiston.dyndns.org
>
>
Hi all,
I was reading this thread and was doing some tests.
postgres=3D# create table test1(a int);
CREATE TABLE
postgres=3D# cr= eate table test2(a int);
CREATE TABLE
postgres=3D# vacuum full tes= t1 , test2;
VACUUM
postgres=3D# repack test1;
REPACK
postgr= es=3D# repack test2;
REPACK
postgres=3D# repack test1, test2;<= br>ERROR: =C2=A0syntax error at or near ","
LINE 1: repack tes= t1, test2;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ^

I was not expecting any error but maybe I am missing s= omething (some patch needs to be applied to test this query?).

=
Thanks and Regards
Mahendra
--000000000000ed1fa2064d27ecbf--