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 1upiAo-00Agew-6k for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Aug 2025 06:56:23 +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 1upiAl-00D8In-5O for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Aug 2025 06:56:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1upiAk-00D8Ie-P9 for pgsql-hackers@lists.postgresql.org; Sat, 23 Aug 2025 06:56:19 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1upiAi-001JY6-0y for pgsql-hackers@lists.postgresql.org; Sat, 23 Aug 2025 06:56:18 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-45b577eb4dbso3648925e9.2 for ; Fri, 22 Aug 2025 23:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755932174; x=1756536974; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Aag6Di3VCss+tUQxr78554iNKbPJqur9VXSsSv9BDXg=; b=XG0Pl2KJeuoCRLnGuuOO3tIv0UUoaqtMsvdxzt/FoemlX/szEey8t4ot6oWF1yeICC MB8yHEgkHCr7kuxMWyaUnN9QTIbtdySSINCNJzvQhDYJG47eCw/oeQ/xOk63bjK6o7GT aazaw5nQS14uazixPx0Eh+A9N0nTzcUaflnwkUWBtDfQxaJq+T7/0iKebBGhhKhQCyDN KOS6OxbPiGSqBlxc8G0tCCyxjYjR+epqjHKHtaDnWxj2MRraJzY3izLT+/WAEODUDdrg QEbxYJ4CAlytowxDVZAjAmLoNHG0EUritf+NS8G5j98GZZPJfL6DhgQNAfkAzkJvGyLm Ec6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755932174; x=1756536974; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Aag6Di3VCss+tUQxr78554iNKbPJqur9VXSsSv9BDXg=; b=PUNamO+55Zdmrvs3/RHuK6OTsKCpZk1/rCsHuds3R5QaRKELxQLyW7kAZKDNjvLBZ9 ynxYaHAY+27oChvU26vb0UMbgVG4u55ZTSPh32o0iE0mwWjBZOZ7QfdSvN09ESj2aGo5 l0xgwLExrXHK4V8aMvF142HL1hdfoCRC9tV8V3jFPpgmBkSg3UlR6Qwk9wxuOUX2g8zQ T0lHlwsK5o7Gcaj4Q8dP8b4bDraU2i5FlRVZ70qTUnPk1mD8rbv9Zy72c5clzxOA759d +M/vxScgNOPb4u2NqaPoce5tVtKqgGVL6WytFNOI4E26xBGQqPargh5+lPtO1/X25Zc1 WBRw== X-Forwarded-Encrypted: i=1; AJvYcCXATRBQHbnC+S77RhWXAFvi6gYkwW+S1VpLx9mF21QgO8KNtBl9qc8BW8D3GH8puoQN4LfLiSgpcw/xWSGQ@lists.postgresql.org X-Gm-Message-State: AOJu0YzugeoVGqz10HOJb6zv3GYOyrSXX8KUm2B0giHpwBR6uR1kIp9W tWhryrsS4Vy5/MUQOuET3IsbPbFHbxpjS2KkDgowbiFVZG2mfSw9qKgx X-Gm-Gg: ASbGncvvjfprXUSENS2VgOoXYZR+QV4IRirVIsQ63yF51N6feX7VJuK8B7jOyoS0KfX oj+LEUPf5tvnznIrc9Ydd9VyWp7gTRg4lAVv7tkJV6SwYH/Dnakd1GFq8No7AuAv3gnJjzTbJ9J VjMTzjKjK/O+A8EY9TzMoK04uZFe8WpY1ZWoLpTHfzm7d+J2ELJv2oTuc69I8rxO8FJN27XQ1ra c/ECPJ/m2nmrAdM43skm18qE6RdpRwGbHqPGwI+dIvhlCSvUAsc8tdeJa4WC4b75gnzUOV1ZNOU 0e6Tlpv82rZAl5FHdqatnSkKiRGKJBSNPOt+QexGeNU+4g/gHNPd5iNuiGodg24BHROOYOoC/jh EzC4FJ8TRvmJtyuP21WqLIwTAS9YSkNa2APO3zDL/mSs1ju7MlY0mjwLcow== X-Google-Smtp-Source: AGHT+IHrrs5tgMJXaPnePqcUtFxHSIsTN2oaPXjk3H0FDxpUUMZUqZs9TbCoT/bcIFVNIV2WWn/mfA== X-Received: by 2002:a05:600c:c491:b0:45b:4d47:5559 with SMTP id 5b1f17b1804b1-45b517dadd6mr41694555e9.36.1755932174049; Fri, 22 Aug 2025 23:56:14 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:103d:2901:820b:90ac:99bb:1af7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3c70f238640sm2417514f8f.26.2025.08.22.23.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Aug 2025 23:56:13 -0700 (PDT) Message-ID: <68a9660d.df0a0220.22e722.840c@mx.google.com> X-Google-Original-Message-ID: <20250823065612.GA13176@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1upiAe-0003mq-WC; Sat, 23 Aug 2025 08:56:13 +0200 Date: Sat, 23 Aug 2025 08:56:12 +0200 From: Michael Banck To: Euler Taveira Cc: =?iso-8859-1?Q?=C1lvaro?= Herrera , Robert Treat , Pg Hackers , Antonin Houska , Fujii Masao , Mihail Nikalayeu Subject: Re: Adding REPACK [concurrently] References: <202508220940.u6qkixbhu7xs@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Fri, Aug 22, 2025 at 05:32:34PM -0300, Euler Taveira wrote: > On Fri, Aug 22, 2025, at 6:40 AM, Álvaro Herrera wrote: > > On 2025-Aug-21, Robert Treat wrote: > >> 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. > > > > I don't think we should remove clusterdb, to avoid breaking any scripts > > that work today. As you say, I would create the standalone pg_repackdb > > to do what we need it to do (namely: run the REPACK commands) and leave > > vacuumdb and clusterdb alone. Removing the obsolete commands and > > options can be done in a few years. > > I would say that we need to plan the removal of these binaries (clusterdb and > vacuumdb). We can start with a warning into clusterdb saying they should use > pg_repackdb. In a few years, we can remove clusterdb. There were complaints > about binary names without a pg_ prefix in the past [1]. Yeah. > 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 should 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. Michael