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 1untXL-00CYeL-Ik for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Aug 2025 06:40:08 +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 1untXK-00Dp6N-VW for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Aug 2025 06:40:07 +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 1untXK-00Dp6E-LH for pgsql-hackers@lists.postgresql.org; Mon, 18 Aug 2025 06:40:07 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1untXJ-000Syx-03 for pgsql-hackers@lists.postgresql.org; Mon, 18 Aug 2025 06:40:06 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-6188b73bef3so6782446a12.3 for ; Sun, 17 Aug 2025 23:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1755499203; x=1756104003; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=M7B/Km/tbZEcARHZ+N6Boa4otXp9/dMrwOIfBw3LU08=; b=gM/qT4WRxCwQpMlBfj11Ewk9UWGcXySNy2hfTPoxZeHn4dtN+bSyZqTQ2fUkTwHqm1 X9rea5aZS6VEsXDPLIhBGzJ3w3lNHOuoAFLIhGzPRndaW4jMnQfJ9UwBZn5MSIhqyC1o 5JX0u8ZDA4g346m+4k3++axNlsrxBSW2+pQvyNHzIh53o0LJW5uOgokcr4EHY9EQXHuI 3+6VrPkDh+/hWYh/BDmuFUohs9hQpKOkfwHc5a+qoF4soxw183vwG2a2Rg0HN/syTrNn gjmVPSr2RBtaCBG3d7sz9Sa4ORu+TH13PBYfvLIcWdyPT8Mz3t12rRRdpVZdilqmKg7a SBUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755499203; x=1756104003; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M7B/Km/tbZEcARHZ+N6Boa4otXp9/dMrwOIfBw3LU08=; b=b88N2e7pWCc+3adGZe0zTaRwlpYSBbawR1/izLl1mWnktRefbJ+hCAf6dCe2KNwnrt +6/Tz4BPAHZ7tjFxCwuRjH1RCP4AZkeTtY/DlnS9+ezk2t9jmlKbIA9/z0tcmQI//8UL DZjkGrmmwP1/2QSIKV/YJr/2dqPAS9DU56EJUkrP2Ia2N45lo+uFj0fGxpy53LXN9IQ7 9tunamfqL+UbtCBIfHE20SDJG5f+yYdwxcM99G576jDomXCs0EJAIicmq6rL4RnfrSwQ aingBquAvrMmWXdidJrtdxBLtSx7B00zNralUwQyxSpvcKQwCRxZNtEB3ErtQBWBYdoD OAHg== X-Forwarded-Encrypted: i=1; AJvYcCWfxFTOz53UfRgMgsUSj3fGYnTzyJsLfysf72LEzx6GUUx/fVaqcGojNklcDbBBZeh5Hl1CehZraDsKCch2@lists.postgresql.org X-Gm-Message-State: AOJu0YzCFR5SrQIVuMWFNOy36jKgjf9Ay+4Ja6BXnITQq3XH/Cy15AAI XKCzR6yu3w910er5iK3AWdrdeGBhzhHBYIEvgSXKX+FDHj/C+O7OOwvBrGNUyaP+DBY= X-Gm-Gg: ASbGncv9jNSOrxvsdK9Z7UabNhIbD0J/oxdDAPwvyhmbc7EL3R24voiFg/6icB8GDvs 0CRIdXpy9GCN/2TGBzFIOVeF+y+XtQu34AZHQAp7EzxupCPJ9iOWEv113ZsPxyYK+cU9MyuAy5S 2CUm177Ua2NU+cC1jRaeHWU9CY61vnEO1AFfkSpXFhlFTaIVqb7J/Q9StO/FhJcD4tmzOHf9uY/ cCno8EmDFlYgoNn1Zc4L5IV0wPaLTA3nUWdErLFk6ZFRIEg/Q41AdEqka2wZTuN5R6UvjBAD7w2 +ssZHdh01kZzO+zPlYXHj969QsI3sfVfke0/gyUJFzAe/6y72lM6+mR0/gISpbN40hZFS6A4Knr m7YwANPJg/fgF4Y91Ma1rUg61Fss6+42UaH039hfLoQWxac5uu8Y3 X-Google-Smtp-Source: AGHT+IHHkPNvRRn3QEY3NeeUwigivVlR8ygNk3YZvMnQJpJIMkW/82c6rDzRXtsfxh6v/KZQsc5JLA== X-Received: by 2002:a05:6402:254b:b0:617:cd9d:e2a4 with SMTP id 4fb4d7f45d1cf-619b6f65d8cmr6512285a12.2.1755499203592; Sun, 17 Aug 2025 23:40:03 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:e935:608a:b37e:cf39:2fe4]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-618af9dc161sm6620143a12.24.2025.08.17.23.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Aug 2025 23:40:03 -0700 (PDT) Message-ID: Subject: Re: analyze-in-stages post upgrade questions From: Laurenz Albe To: Fujii Masao Cc: Mircea Cadariu , "Zechman, Derek S" , Adrian Klaver , pgsql-hackers@lists.postgresql.org Date: Mon, 18 Aug 2025 08:40:02 +0200 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 o= nly. I am fine with your patch. 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 opt= ion, > + vacuumdb will clean all regular table= s > + 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 more = than clean up dead tuples. Concerning backpatching, I voted against, but I suggest that this be backpa= tched to v18. I don't feel very strongly about it though. Yours, Laurenz Albe