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 1vIZIR-005fjp-1H for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Nov 2025 21:19:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vIZIP-002ZsS-0Y for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Nov 2025 21:19:29 +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.96) (envelope-from ) id 1vIZIO-002ZsK-2n for pgsql-hackers@lists.postgresql.org; Mon, 10 Nov 2025 21:19:28 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vIZIM-006RE9-2U for pgsql-hackers@postgresql.org; Mon, 10 Nov 2025 21:19:27 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-4331709968fso20794495ab.2 for ; Mon, 10 Nov 2025 13:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762809566; x=1763414366; 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=6TkCZ0hst4gq5YAfRNwH9o7ZGsyZkzzl0kN0EPOB554=; b=gI5tHqq3I4QWwQpWLUH9nTaS7W2JXgX5aY8pPGW5rXlunC7WYNJQuF5qR8ULUdhxxa T7Yr8gQf5nMCyIwpp7gpcUUSf10iehwCc7hRj7IAFuTRzJ8cdRpRJ9JRX0A1DJylFECd fESmg2q4FGMa2Vkq7CKhad6ClDrnRuEWtKG6f76bD257venn3wqhKJg7/wL5k7Mbr87J guTy8tBqTr85IBBVJ8kGtA0x3EK76XsdP1UC9eerJHudZjyeqn9QkihfPPLZDvCdxZAQ 6o2bCBVnbk2Sx7Ud73kM9RLI6CQP7g660LSVI5JHkMbhxFHe88m6ybHSMG/bPMgBOpdj zBBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762809566; x=1763414366; 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=6TkCZ0hst4gq5YAfRNwH9o7ZGsyZkzzl0kN0EPOB554=; b=c5jk3YlWvd88DQmCuwXDk7sHpVM0vFkgh8+KARjbHtqVjGb1tDB4sAO4t97XUTU/EB Kpnqrfgfoo0nPEbQYhPgaky8S9IdX2DgA2rxUrsxYjd5qDVpAYlVWsmVnz/fuwi0+Zqu 1e2P5+XQYHQsReWa+oLPZS8fhseHb5pIeH6jt7mN0L0/sxaBbRnBOt+f3q2siuRAZ8XN fywv0SnLxsi8SHguZnxB0f+8FJkwOHlALnu0bCELjQNwdo8b4qh9eO8FJPKNw9oY4H09 CrmoEqGcGDwlPez7t2DCZA29CSpNQEIztb7rK1m1fUo0qd09uBHXgz0xIhFI1/B4YH5q 0oSg== X-Gm-Message-State: AOJu0Yzhmny5F0tjl1iXJiE/Ntqe7xRjrPTaXyC96F6NrDTEE9ZGXpsy 35fAXLjXLlj75kcWBzxQBNg78GUyDLUdygQB9/+xTGlhH7jT9blZajXB X-Gm-Gg: ASbGncskCfyEQzXWlYrMHsbDrFnSHCrzTIfCXFgEoMXlLEdnWbYspOuMGofn6LypKd1 c+BvCMSp0Kv8fOfOzouB2XOHx2QvKX84NvTsDqNJwX5yK6/vCuylrhv/ru4TVH5DW7F4VTbgBH1 AXZD7gT+1/Mp43yTRrpmRwNi3/mafkLaTppz01D4NJaAQogqJppRpnz0nQjMiIT+ue5gf67Cq78 p4/hMm5wGbuDbhbkX+u1+e1SbIYkAwijkNpTj8eQqeB6GIvW+X9/Qp+xPxw40ljOpddpCCvw4zf rChH7u75z6MNvoSl9EJusLvY/tlpRhE3dhJ6KEVyKNYKPxyZ/k8UbEDn9y16/Wgxl1YzZgLT0eY 7gLVeFXbcVRYCcvdBUSNbSthiMX6e+lp2Hu770FwegvyFfSmhjm+m004x/MFvWfU+sTwgFFcZQy dL6u6iKq7pJLIS12GPvgQ2qfYEdzIyqcq5rgfiTXO1SY3bmnP9+Mt1YdB2tEcwaLbLQw== X-Google-Smtp-Source: AGHT+IED7MnkPdqfDNEuhcM7lH0XUE8s9N101tj9mvQahgi5t1e/Dhu1S/5XRxxZnjuLKLlBmBoAYA== X-Received: by 2002:a05:6e02:1a6f:b0:433:7a0e:ef20 with SMTP id e9e14a558f8ab-4337a0effb3mr68140395ab.24.1762809565965; Mon, 10 Nov 2025 13:19:25 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5b74698ae5asm5388391173.55.2025.11.10.13.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 13:19:25 -0800 (PST) Date: Mon, 10 Nov 2025 15:19:23 -0600 From: Nathan Bossart To: Corey Huinker Cc: pgsql-hackers@postgresql.org Subject: Re: vacuumdb: add --dry-run Message-ID: References: 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 Mon, Nov 10, 2025 at 02:44:41PM -0500, Corey Huinker wrote: > This is a small patch to add a new option to vacuumdb to answer the > question "what commands will actually be run by this combination of > command-line switches against this database?" without actually running the > commands. My attempts to test this all got stuck in wait_on_slots(). I haven't looked too closely, but I suspect the issue is that the socket never becomes readable because we don't send a query. If I set free_slot->inUse to false before printing the command, it no longer hangs. We probably want to create a function in parallel_slot.c to mark slots that we don't intend to give a query as idle. -- nathan