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.94.2) (envelope-from ) id 1uqZfF-008oA9-8p for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Aug 2025 16:03:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uqZfE-00AxOr-LO for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Aug 2025 16:03:21 +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.94.2) (envelope-from ) id 1uqZfE-00AxOj-7o for pgsql-hackers@lists.postgresql.org; Mon, 25 Aug 2025 16:03:20 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uqZfC-001ms0-0H for pgsql-hackers@lists.postgresql.org; Mon, 25 Aug 2025 16:03:20 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-71ff2b20039so20382307b3.3 for ; Mon, 25 Aug 2025 09:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xzilla-net.20230601.gappssmtp.com; s=20230601; t=1756137796; x=1756742596; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kyNmlvSprWO5OumfS5TkCPDkMbL68r0YvwNtq3F33As=; b=Om0vQWMiphlqhEs/E3C52zuNYYfMtQJf1wwpWQg3wRlK9Jjwa8N0C5ivxdPvcPJhX+ RY/fbk40EkmEg2aNBAC3ubWR2ac7fCYuijSFJwVqKOEvbdKCvzrJn9f0dy+VvQDrR7t1 HpIe2D+nHeOWN8s9KB3O909kbry3qGPzSnqRe8Yp+HkFZlh6+Q4RiRqUWqEDUlcyxue+ L1t4LLrk/Q1Rwa9wRoq+sRp16Y9VyUUOhrMVDQ5iReIuDr/IdkpHJIR1WWNa6etZb1mr zKnNXLYjw4T1XpuzFPMrIIjWNLOOGtMGh6y/SH92bOrpzgkNoC0MF06ge56ORAcYBI34 BMxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756137796; x=1756742596; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kyNmlvSprWO5OumfS5TkCPDkMbL68r0YvwNtq3F33As=; b=fuxwXzH6iOUxHz24ZGgsRmuojFqS5KTAq9Ndpcustk/czRcOXTpYcdsIfG+cr4DZOX gOR1jFweNkCX4d4BdriQtFQiA1yIHJ8ic/KfnMDnHxeijxgy1ETjrrP6wkN4BCXA19Z0 8oAIOaskpzUEk6RVHMjhLlTz7D7rQ3ymf8QfBCygjfMLREz8j88EjW1np2DoXtNtBwpS S0pw93iQWhIaBJKmX7CwsDOyoK+zPVz8TXMdIUo1zCd2E/7Qq8ATmkAB6nJCNwdbP0jc 4s04jGswmJLK6217e9CVm/suXawtdAo0gmZyS8+YOr76d81j8p23Sq3WPdAjIiaKlkga R3FA== X-Forwarded-Encrypted: i=1; AJvYcCXbZABN0eksamsNKRnIQf968omHw3RJ7wRxqyf2y78ULpsmnk7LFQ6tqxbbyiEUKKdBTPWW6fMySQMamggS@lists.postgresql.org X-Gm-Message-State: AOJu0YzTpx9+e0U/+cXlr7jFneqosRhkGrmWvTRXSCFO9nFkLs3/AeVo C2a8kiLZz2h+naBZwLuXiGmM2CsncWqFG3LgURTVjlxpsou8S5/S+wqP2UljDGglf2A7WiSQ1x2 eQHxwTnkCOA+4k5q455ZWTO+7HygjoPgBRVN8tEWCag== X-Gm-Gg: ASbGncsMXraOAH/Xup3DOEP1AY3tX3qfAoBvt12zZUScT2gc9xtT8k228sY9p2hxR8g zxNYvQrVxMUNAurY5c3JgNxV9rXa1OUm1nk5u/W/BrY3Wub/wwfTRP5/jyBH+i8jF6AKBDPtULr 6lTjOPhKpfE39LAwqWhD9LcVqpsTuwFnNBqrnik7D4FMKY5IB+3jNrYq1aH49CF5mW6jx7elUTE xZ4Mjg= X-Google-Smtp-Source: AGHT+IEhjA3Vhu4h/630AcD6zF+bzNZ6QBXeKmVGRIzvWxQQcTudAPHzERn4cavE/k5FWhb4iUJBbSXsHpcDBJzlt18= X-Received: by 2002:a05:690c:4d88:b0:71f:b944:102c with SMTP id 00721157ae682-71fdc539758mr151607337b3.53.1756137795931; Mon, 25 Aug 2025 09:03:15 -0700 (PDT) MIME-Version: 1.0 References: <202508220940.u6qkixbhu7xs@alvherre.pgsql> <68a9660d.df0a0220.22e722.840c@mx.google.com> <1764804a-2bc1-46e9-9008-82ea39cb8c81@app.fastmail.com> In-Reply-To: <1764804a-2bc1-46e9-9008-82ea39cb8c81@app.fastmail.com> From: Robert Treat Date: Mon, 25 Aug 2025 12:03:03 -0400 X-Gm-Features: Ac12FXwxgweoYYa2Sv91wBZR68Qt4OwXOU3R9VW3OCg82bjLlg0Wsd7j-RnbImo Message-ID: Subject: Re: Adding REPACK [concurrently] To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Michael Banck , Euler Taveira , pgsql-hackers , Antonin Houska , Fujii Masao , Mihail Nikalayeu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Aug 23, 2025 at 10:23=E2=80=AFAM =C3=81lvaro Herrera wrote: > On 2025-08-23, Michael Banck wrote: > > On Fri, Aug 22, 2025 at 05:32:34PM -0300, Euler Taveira wrote: > > >> I don't think we need to keep vacuumdb. Packagers can keep a symlink (= vacuumdb) > >> to pg_repackdb. We can add a similar warning message saying they shoul= d use > >> pg_repackdb if the symlink is used. > > > > Unless pg_repack has the same (or a superset of) CLI and behaviour as > > vacuumdb (I haven't checked, but doubt it?), I think replacing vacuumdb > > with a symlink to pg_repack will lead to much more breakage in existing > > scripts/automation than clusterdb, which I guess is used orders of > > magnitude less frequently than vacumdb. > > Yeah, I completely disagree with the idea of getting rid of vacuumdb. We = can, maybe, in a distant future, get rid of the --full option to vacuumdb. = But the rest of the vacuumdb behavior must stay, I think, because REPACK i= s not VACUUM =E2=80=94 it is only VACUUM FULL. And we want to make that dis= tinction very clear. > Or to put it the other way, VACUUM FULL is not really VACUUM either, it is really a form of "repack". > We can also, in a few years, get rid of clusterdb. But I don't think we = need to deprecate it just yet. > Yeah, ISTM the long term goal should be two binaries, one of which manages aspects of clustering/repacking type of activities, and one which manages vacuum type activities. I don't think that's different that what Alvaro is proposing, FWIW my original question was about confirming that was the end goal, but also trying to understand the coordination of when these changes would take place, because the changes to the code, changes to the SQL commands and their docs, and changes to the command line tools, seem to be working at different cadences. Which can be fine if it's on purpose, but maybe needs to be tightened up if not; for example, the current patchset doesn't make any changes to clusterdb, which one might expect to emit a warning about being deprecated in favor of pg_repackdb, if not just a complete punting to use pg_repackdb instead. Robert Treat https://xzilla.net