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 1uoaUD-006M47-1l for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Aug 2025 04:31:46 +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 1uoaUC-003UZk-Gv for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Aug 2025 04:31:45 +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 1uoaUC-003UUk-6w for pgsql-hackers@lists.postgresql.org; Wed, 20 Aug 2025 04:31:44 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uoaUA-000mPV-0U for pgsql-hackers@lists.postgresql.org; Wed, 20 Aug 2025 04:31:43 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3e5700448fbso50544055ab.2 for ; Tue, 19 Aug 2025 21:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755664301; x=1756269101; 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=JpHweFEfvv+hkqt1sQ3B1v0LYgc8r9KJ4mAuE9ehuxo=; b=Cut9Hup7vB4XUVLRgppza0GgscP2uLzxLXZfQhjQu1JZQxgBtjvtrEIddsR0+sPCKW IHx7Paxj9+lMlF+4JhzZpCouC4FY78bd0QY8TCCeAdatvYtWPQTlCoL/pm5LSqwF2uAQ yWI51j9bTUM7712qcI8s1gWOahG4MRAaSAjL6dEa8oOLNHBnVRfRk9G2klo8ULnEUiVx xZ/Ea9GQSEbHved8NgLo1tiMs9HAvqtMB9C1wEvs2wsj1fS88jQ6S+8E5+MH1Ta4U9uf HbLxofvYvOCE5voG5OXM+h8gT6dSS3QX3sBmCdVaV7qFLTj/vxOHPJuQwZnSx7b12mO0 h76w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755664301; x=1756269101; 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=JpHweFEfvv+hkqt1sQ3B1v0LYgc8r9KJ4mAuE9ehuxo=; b=jAx3/8lOKJ9dO3C0TsQ07KurrRTB3v3IuAaXFGgY7sspVfRpRyg2py2+x4FwuG/y0E DGhF61vYYOlgiRU8/07+dyivcO4VVM4JZBxcjli5fW/JCElrbruC7DyISXfP8tZUR12d 8SXmatNctQvMdUW/BjuOXGLwy4I+sRnMkb4F4RLI5IyhjNriVFdytjfQLkAeayktKUEr /3PRa4dvojSBNME8En5Uz+cCBmKHkxgi1r5gpL6TmclczGiVxvuMB16dP8RjLwBB7J65 1hj+byClmJ7S4z3px1PdecXT5+AkeQz5oQ8i0Xw8UE5PM1BryDWDKqput3hd4PW00tsd Koxw== X-Forwarded-Encrypted: i=1; AJvYcCWo4fFypb0phUN0REjaxqxvWHcPTJ/B5WF3BX8o1HGENYa4EaC0nRAykFu+Sk3hw92evvbY78DviuJTOXHm@lists.postgresql.org X-Gm-Message-State: AOJu0YzStweupUM1h/hZ6pYqizW72aLHW0klelskBeMku0drY/jbJNaY KVff8ZONYi7bxmggy4e9fmpy5zDoCza1SC0jpQz2RV20dN/gxwBijXC7nq/K8mjvpdO+sD9fE8n t3lPsCjSrl003nVPfdJnPKFYRIP/L/zw= X-Gm-Gg: ASbGncspBX6Tq6tGmEPLuPeMUL+ZsjWL2YRGw8CJBzRYZ5HHkHXF1L1R74ZfezwDjJx l3vs+B6UZu4cBcNeQlSt1qK92esV1Dy16Sm5QaSpnU0/7ws3gqDOOEuTsQ9/6RPS2NYaGsHJpiz LYZ+mEM4zc93T4RnzSmoVadDwfFFmz/MJuASB8CdCEAwuOUH3ISWRQUPxSMUTh/94EcyzfmlraU XzFWzbNRS657VrIH0VmhwFQAmgf+syF+z/F8Cs6 X-Google-Smtp-Source: AGHT+IHSWkNd1cXxUwBdhgCaHhrq39/DQya5zPJcrZZmazkmZ8L+74aTBB8nKliVlvbHfZ5pK6UU2zpZIu2Q6zo6ZrU= X-Received: by 2002:a05:6e02:1aa9:b0:3e3:ef06:674c with SMTP id e9e14a558f8ab-3e67cab3390mr29063695ab.20.1755664301307; Tue, 19 Aug 2025 21:31:41 -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> <46e2b1dac20cd7bf8f0c9af855afdfebefc0f9d0.camel@cybertec.at> In-Reply-To: <46e2b1dac20cd7bf8f0c9af855afdfebefc0f9d0.camel@cybertec.at> From: Fujii Masao Date: Wed, 20 Aug 2025 13:31:29 +0900 X-Gm-Features: Ac12FXw5iFTgP_pq-gr6aRBKZq16rt-MamgVFDV8KzI5RWRLuh8DjoGeEBafyO0 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 Wed, Aug 20, 2025 at 12:16=E2=80=AFAM Laurenz Albe wrote: > > On Tue, 2025-08-19 at 23:40 +0900, Fujii Masao wrote: > > > > --- 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 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. > > > > 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? > > Works for me; I didn't consider that. > > > > Concerning backpatching, I voted against, but I suggest that this be = backpatched > > > 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 ch= ange > > 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-patch= ing, > > we can certainly revisit it. But for now I'm thinking to commit the pat= ch > > to master. > > I don't have a strong reason either - my reasoning was that the change is= small > and unlikely to introduce a bug, and that it would be nice to get more ac= curate > statistics on partitioned tables after "pg_upgrade" a year earlier. > > But I won't object if the patch is only in v19. OK, so for now I've pushed the patch to master. Thanks! Regards, --=20 Fujii Masao