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 1upDQU-0014Pf-Ph for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Aug 2025 22:06:32 +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 1upDQT-001UAP-Ta for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Aug 2025 22:06:30 +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 1upDQT-001UAH-FO for pgsql-hackers@lists.postgresql.org; Thu, 21 Aug 2025 22:06:30 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1upDQR-001A3x-0a for pgsql-hackers@lists.postgresql.org; Thu, 21 Aug 2025 22:06:29 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-71d60504db9so12247717b3.2 for ; Thu, 21 Aug 2025 15:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xzilla-net.20230601.gappssmtp.com; s=20230601; t=1755813985; x=1756418785; 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=v3z1bW6QkROBTdEyCwY1osoxNj5Xwp2oiDjzJRv7/XQ=; b=KfiZ0rWO74F4MqdWhQ0/+WqnksMHFAYMk5h5n2Aet7qLYlbv8YEDv+bGpWx8hRdogv 51lXi6QE+KZ+4p3JXO4OaPU2mdRySUgPPM+I5wKxj1k2ssaMM+9DgGLGZuoJ31eQrubU +laoyQJmV/P4oq81R+xxO6OS+hsQhxeJ7eppuQgtq3Bs/KgBy8yBf2mQFl1ZHiXnP1/d nKV2t3yYfeqZSLVt+DlhUHGPVvio5dMSzsSY+6W1Mr6LCb34z8HiRUF/yQrC0ZfR/qes VwvPm7D+mB25TEXxWtfPfZc9jmv7Xo3g/UDjNRxQJErkA7JJplB5jykoSqc3QRE+6Aa9 xIQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755813985; x=1756418785; 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=v3z1bW6QkROBTdEyCwY1osoxNj5Xwp2oiDjzJRv7/XQ=; b=sEyTqN6DulKGfQyqMLApPgXwKLiio8L92oU/koYH4DOVRfEe1Bbb+t+r5SdTOAPnLe zd0ISDDMELwaCs+63GLTDq61jYsjUKKFuvSOjSM2h79xlTislUImy0GJf68Eggo+OfKQ qeS+Us166Zd+W7PYQVTTr8TxsEeSMqUnCMZ2BENkLa/iKJ7R5akHsRE14ZWnu2qPIdEj JFnGXVavsBcms6lW3jHO6Em3fCVcj9jSV042Irmpr43ZS/v3s0jGwcWD0i7VqWvL/XAK 7FeDcHXg8VwM4KsGbHxG5JHkdi7BHtxIsLMW5tQYlu6jgTBQaTPUlA0jQqF54/3Uw9U0 MSMw== X-Gm-Message-State: AOJu0YzCK0JDUvQ1FzJYnxP2k9EMWjWvJTDPZN0crToK4pMjp6sBcEfD 8y6N+O4p0uaqSdZWZl+phQMehBxXs46gBUyc2/eZVoS4DJlLc7fa5gtyP0raXgX0VcMs8uVcQ2k ENowHqWnwdaqYzc84IKhlJWD8Hshenl8vyg+WX5HLAA== X-Gm-Gg: ASbGncsHdrMvYfwaKmg4DnS+HMWg/aDqsQKuNb3pOjbuuHjOOVKU7g5JZgTwIrbVwpa rgxHbCRK0HI6CaWOHlf+VRBpRAaeRTmqabFtSupOiBPDQfeWvZg8QwUV1zwhMASQtlPsJ/dGO8+ 09cE+q5FtyruaQAjlHvp2pq9ETDfz27vSFs6GD9597lQG+YPN7XkQuxC1u+2RzEEKwFTI1ZY1F9 DsUfLc= X-Google-Smtp-Source: AGHT+IE4SfyxJrBmkHFdUiIi5svBSJGIdQY5bkA1SJfpIKA4j6jAZQDN40HIjXjVJ4yCVwSmfeZ6FpbK3xSfRutsxd8= X-Received: by 2002:a05:690c:311:b0:71f:9a36:d33c with SMTP id 00721157ae682-71fdc41251amr8052897b3.46.1755813984259; Thu, 21 Aug 2025 15:06:24 -0700 (PDT) MIME-Version: 1.0 References: <202507262156.sb455angijk6@alvherre.pgsql> <202508191853.wofznwocbi5x@alvherre.pgsql> In-Reply-To: <202508191853.wofznwocbi5x@alvherre.pgsql> From: Robert Treat Date: Thu, 21 Aug 2025 18:06:13 -0400 X-Gm-Features: Ac12FXzA4Rw96jLv21RsEMNetpGqY6pMDwrluuU4uNkscQD8nKtx97Chi4BHRTg Message-ID: Subject: Re: Adding REPACK [concurrently] To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Pg 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 Tue, Aug 19, 2025 at 2:53=E2=80=AFPM =C3=81lvaro Herrera wrote: > Note choice of shell command name: though all the other programs in > src/bin/scripts do not use the "pg_" prefix, this one does; we thought > it made no sense to follow the old programs as precedent because there > seems to be a lament for the lack of pg_ prefix in those, and we only > keep what they are because of their long history. This one has no > history. > > Still on pg_repackdb, the implementation here is to install a symlink > called pg_repackdb which points to vacuumdb, and make the program behave > differently when called in this way. The amount of additional code for > this is relatively small, so I think this is a worthy technique -- > assuming it works. If it doesn't, Antonin proposed a separate binary > that just calls some functions from vacuumdb. Or maybe we could have a > common source file that both utilities call. > What's the plan for clusterdb? It seems like we'd ideally create a stand alone pg_repackdb which replaces clusterdb and also allows us to remove the FULL options from vacuumdb. Robert Treat https://xzilla.net