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 1vLquJ-00CJia-0M for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 22:44:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLquH-00G0p2-1J for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Nov 2025 22:44:09 +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 1vLquH-00G0ou-0K for pgsql-hackers@lists.postgresql.org; Wed, 19 Nov 2025 22:44:09 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vLquF-000RFY-1L for pgsql-hackers@postgresql.org; Wed, 19 Nov 2025 22:44:09 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-43321629a25so1448995ab.3 for ; Wed, 19 Nov 2025 14:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763592245; x=1764197045; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YzuHWuYGKstntbDt7n8qNw22BCi9S7/9wfT32ZbCfus=; b=QbvlEdVb2DWwlVxRZQ7cVRNmiW7O0dEpwCpNSYgPYZj71Ntqt5MWBT9oxlBZzpr2Bb P5JNg4MezNsgGEkBssOpcn5T8Et3EKAO/kJG/8VDWz3JBjGpr5OYb2bGLb4VRpMTvAuH gmMsZGdo0yj+s3pUI2DkngKaSBJF/6quNgsUSKtYrIZFefepuI07PctcZLbdpBJ8yM4b ajf5EyNYGojwgT8sIf765lD8L4l4sz3q7FACWC2Fkbvr2kpYvw0HrfS4P/ROG2BR8Ijn k5ixLrKK4fORQBQFZ4vvSHHlgoURqJMAnXtandgxnRGJrOm/h58WXdazjt4KblRfrc3Q JXew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763592245; x=1764197045; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YzuHWuYGKstntbDt7n8qNw22BCi9S7/9wfT32ZbCfus=; b=b8x8qNGT0LhL5yYlZWQva0enpSmUWJi8fk5lgBpxwU6mHnCg/D+C7HlC/qPdiTZddP eoSKeTNQC2u8ISKYnM9/7AGJKsIXHCHFSambm2CIBHca705RsXaFxMHwkDwJjXyogp8U LnegbWGcWHh4Qw3ajICF71shivvjKTM4MSAIc9dD+X2YRiqP9Z3Cg0XMH5hJqEkUQXcq R8orTuzvvpQh7ymUnr5277/rfFQ94mahauSwD0lsvGHCOETaZcRxhshkTlB0eaWHB+pH bE2zoc4p0knorKHX5OnW6OtNywLn/+r+Yuxb+0IYy3Fs7kq7/j9w1yGIXSiOfLqSpRQR osVA== X-Forwarded-Encrypted: i=1; AJvYcCXfC0VoxovuHplHIVCS4VaWDOA8W2TV/vzNe8SHO23nAHy8Vbd48758sfGKKUrfedNd8lHkd0BslVRklYIz@postgresql.org X-Gm-Message-State: AOJu0Yxb363lGtsYdVB9f5BB0LyNRvQn57MlTNOlJhmFF2YQdwj7qT6t cIq5vKBhlkwc52Y+Qnw+WP8d3ov3G+7deeB6OjRmglHjjVzRtgJLJTyI X-Gm-Gg: ASbGncuiNA1mXmFuhcAD9QW5P2L7d5+MY9QJ/9u29Rq+asEo8EZfXc0pK5wYb4Beul1 V61AOqBMjhYd8V4UWUba4EUwnbtYUJ5u/4uoYBHLrKWKenHpIhEuEh2ZIuJhKnLhLmFi4IIU9Tl tJVVCK8fW7UK+4Mry8zHpE1K59tZfJ8Jhbdn69SSg1eghoaAL0sGyS1Ra0xv6o2vcj+lUB5Lhex +K0zx/IcePPVO4+huD1ITI1k4QbDLewE92zPGYH4CzMnEL/tFcMzqj0NAlUTdOAj/eoyJiHpYWI kCr68pkDfJTC6PKnowqcmqtubn5SaCfKfS9+xQze7xU7nwwaG413EENoiYUHA7W2kdo24SV0orj mPuWKexbJC5SMNaEueGBsh8N+5uOZXp77MFgXst08lUnOCptS/MAoRNYD2HlEIu3T5rFUFBj4Vm Q7quq7g0sHNSnSRYcx8H+8D2iAwcBznzeYdYFXcC2PtKJIaSzWwGmHdKtCSZazWvFglBr/Gms+e 4aE/eqtyj/mL60= X-Google-Smtp-Source: AGHT+IFPMRDtuWxjhHpw03QtFOr7KBQE4LWzgrBW/BLsna6HTWQ4qHwdswNAZb+IYi4jm2318wshAQ== X-Received: by 2002:a05:6e02:1447:b0:433:68f0:bdbe with SMTP id e9e14a558f8ab-435a908051cmr17533615ab.31.1763592245058; Wed, 19 Nov 2025 14:44:05 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-435a90e9b61sm3604405ab.34.2025.11.19.14.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 14:44:04 -0800 (PST) Date: Wed, 19 Nov 2025 16:44:03 -0600 From: Nathan Bossart To: Corey Huinker Cc: Chao Li , pgsql-hackers@postgresql.org Subject: Re: vacuumdb: add --dry-run Message-ID: References: <3DB353E5-944D-4E18-9DA2-4151F44AA59B@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 19, 2025 at 05:23:48PM -0500, Corey Huinker wrote: > Now with zero hangs and some test cases. I didn't create a function (yet) > as it seemed trivial. I still think it could be worth moving the dry-run code into run_vacuum_command() (which might entail moving the calls to ParallelSlotSetHandler() there, too). We can probably piggy-back on the "if (echo)" branch in that function. Also, we can probably skip the executeCommand() calls for --analyze-in-stages. -- nathan