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 1uoNVh-0031e3-18 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 14:40:26 +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 1uoNVg-00CcBc-B1 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 14:40:24 +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 1uoNVg-00CcBT-1F for pgsql-hackers@lists.postgresql.org; Tue, 19 Aug 2025 14:40:24 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uoNVe-000fhH-0G for pgsql-hackers@lists.postgresql.org; Tue, 19 Aug 2025 14:40:23 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-333f917a67aso38337341fa.2 for ; Tue, 19 Aug 2025 07:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755614421; x=1756219221; 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=dGnXfxVa1+ixTJzjAOf6cwKTKY9cYaoJp49YLhh8e8M=; b=bllMvrT+SjRYPV03j1XfL5undoiwoPCqxlDsBxwex2ziI8p/pKkQ8r/NupvvTFKZuI QIaDPKm8qPhSatDMj7SrQSj+6JeUCNGnI1/t6b8PsDD88TxjhB58pp/5QmYvQ/h+QGJi MxR/ceEg4jVEvUpm+BA+4Sj/zYDIF3TIdRCiHgRO3Wz/qoLu8ajIEoabM+qlKpnnL4Mc /b8WYup9GglftDXJMuAeua43QXGh2mAcFoXx7LiIMpMU30EGzszvn1RCFQs7S8thyL3u 0Ykd3TlV2pAj8r97FGsg2LujUe1iXkds7CyT1YGjf7KaXZFsMAfnRoVnvgso28iyRuwi RAjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755614421; x=1756219221; 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=dGnXfxVa1+ixTJzjAOf6cwKTKY9cYaoJp49YLhh8e8M=; b=MEpEf/IsUvmKO6g190r0dyf/ONnkFAMZ9G/iJyAx8frDK9fNRSE3/MoYlL+Dy1pJW1 lKxtPJyxo9jx3Z8X2aNNzp5E+P3drZnGzL6XZKR8bY5Dc6y89jupCld80ljdBDekvzKB s8cZt4BiGLne8YElZMAstKigwpp6yYobJ+QA+TOrERqt8QGQyDAd9lsk3iQx6w5Hnjy6 6jJhRc3a4nAZ3M6aqdNvbBjBBdY3vTo7EXvhUsnj3keeL8gSD7bMkQIqo7vYLXfNip6y a1w5g8h6Ogt5PT0KUElHyEIPLzBrQqPs5Ygfy9iYhko8w0hBCDszExUrv6NmsOtvp/YA 2hzA== X-Forwarded-Encrypted: i=1; AJvYcCVIx7LOXYxjAV88+mO0eonn2XEgzBHuHexdHqgJlpjiU7dQPuWQzekLBSbSIbxwYXwDsLBZbIcm+L8eiu4F@lists.postgresql.org X-Gm-Message-State: AOJu0YxsUCKY2lSzadZLjRaoldmhkjiFWlSHZgBu0cl61+0EpU4Nybke 0mzF1Zm/pzdvFpRbumxoSe5yO34zANs4VMXlcU3Ryg/BTzIfXgvSAY6j5JbSKYx+JkXDLvUn2GA 5IJ4Y9LAM0R+05NUZArw2skLVwqbjjzg= X-Gm-Gg: ASbGncsUDLo3vBWglKVbQxwp1teU7RKc/y0WxLvJ09c4bLKgTA144PdbZ1EkK7M/ccc CZU8e1gmOqIuQUGgfCTnxzOUZrIsmjn0QNcI6wqdfJZ68FNVI5HacGD9eDcAeHqFF2KtiqEQkah tco+bAknm+Jxi2LFy68Y9hWCIb2VyMYskFGbQVHG8Y+Lsk0NSUaaCZmSF3mSk6oXKGW8Xw2Xos9 pNrRqufwTFqPeZdNI0NT5g5TbGmJsCZ7kh0WPm4BQ== X-Google-Smtp-Source: AGHT+IFUMdHbZr9JUTSN7u2Y7YkXorWB6Gjgqc8OXF2qctj0p0wjKW9YfDgSz2/rkf8lRBRhiBeMjT2P+xXXhs5C/Ws= X-Received: by 2002:a05:651c:41dc:b0:32b:a7d2:a8b1 with SMTP id 38308e7fff4ca-33530516470mr5797071fa.12.1755614420735; Tue, 19 Aug 2025 07:40:20 -0700 (PDT) MIME-Version: 1.0 References: <6add2a9a-7cf2-4d1b-8f3e-2e26a7ebe883@aklaver.com> <4d8122febd3007143504e4b6034b4253f7000761.camel@cybertec.at> <08d943a83590308cbb9be594d80b4e19ca80e08e.camel@cybertec.at> <2505eef1-b6aa-4518-baff-861a2e6a507b@gmail.com> <2c1f1834107045dfa8b32417771b56bab0cffc56.camel@cybertec.at> <2cce9851-327a-4b1a-ab8e-531c2f92532b@gmail.com> <9c9cb744-b8c7-4d75-acad-595b3faba187@gmail.com> <9a93cffe79e2be1d9450a36e773a39dc456c241e.camel@cybertec.at> In-Reply-To: From: Fujii Masao Date: Tue, 19 Aug 2025 23:40:05 +0900 X-Gm-Features: Ac12FXxnoez-pKm9EUG81vTDVXjhi_wqDW-bjRivSaO8Hdmd8nXFev3gAMMK3RE Message-ID: Subject: Re: analyze-in-stages post upgrade questions To: Laurenz Albe Cc: Mircea Cadariu , "Zechman, Derek S" , Adrian Klaver , pgsql-hackers@lists.postgresql.org 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 Mon, Aug 18, 2025 at 3:40=E2=80=AFPM Laurenz Albe wrote: > > On Mon, 2025-08-18 at 11:38 +0900, Fujii Masao wrote: > > Thanks! So I've updated the patch based on my earlier comments. > > Unless there are objections, I'll commit the attached version to master= only. > > I am fine with your patch. Thanks for the review! > One suggestion: > > > --- a/doc/src/sgml/ref/vacuumdb.sgml > > +++ b/doc/src/sgml/ref/vacuumdb.sgml > > @@ -397,6 +397,15 @@ PostgreSQL documentation > > Multiple tables can be vacuumed by writing multiple > > switches. > > > > + > > + If no tables are specified with the o= ption, > > + vacuumdb will clean all regular tab= les > > + and materialized views in the connected database. > > + If or > > + is also specified, > > + it will analyze all regular tables, partitioned tables, > > + and materialized views (but not foreign tables). > > + > > I suggest replacing "clean" with "process", since VACUUM does so much mor= e than > clean up dead tuples. I see your point. However, since the vacuumdb docs already use "clean" in several places, I think it's better to keep using "clean" here for consistency. Thought? > Concerning backpatching, I voted against, but I suggest that this be back= patched > to v18. I don't feel very strongly about it though. As for back-patching, I failed to find a strong reason to apply this change to v18 over the many other patches that could not be committed before the feature freeze... Of course if there's broad support for back-patching, we can certainly revisit it. But for now I'm thinking to commit the patch to master. Regards, --=20 Fujii Masao