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 1ujieY-00BDFI-Fc for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Aug 2025 18:14:18 +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 1ujieX-0007Zp-8i for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Aug 2025 18:14:17 +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 1ujieW-0007Ze-Qy for pgsql-hackers@lists.postgresql.org; Wed, 06 Aug 2025 18:14:16 +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 1ujieU-0015G5-0i for pgsql-hackers@lists.postgresql.org; Wed, 06 Aug 2025 18:14:15 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3e40d16e218so955645ab.1 for ; Wed, 06 Aug 2025 11:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754504054; x=1755108854; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=KDhdwF8Wa9zP529bYv/gT1rLZ4v66hflO99QZTAPlpo=; b=f9VEpcZod9kaIJIGlVqBXc4cfLuTWBzjGNKzcMlgGHe66lhU/Fd6IvVEr9K8d4epDg 43iMQ/fM34afpw0MGR3kP++1w/Oq4N3wQaP3BR59Ql6IRJpHErAxxjBsu3hhili2tJWX qq1zeOTi9vtjZlcq7YiI/tu/JxPBZxDYryQh1yKkMOrKHh5pWZx4V7hFnhhVjuXDfym8 u/aG3CWo6BM+RKaVMfaUbX0Q1jcvZJOYXb28c+khevlHlYAcNL8zIe8pxUkLaURXVXyE C/NAa/lOGzrSXG+li/ynIV/M4Ze7DzhNO/dWsUxQxg5H0liUQF2IxGjbFp2ak721MxA5 9EsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754504054; x=1755108854; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KDhdwF8Wa9zP529bYv/gT1rLZ4v66hflO99QZTAPlpo=; b=GxYiKO07K++jWfElxpO9Q3I44UOwtpUuwCjiuZoLS0ePq4UI2cxPY6NTLFGcidE9SX u4nbFjjQOCKI1ujfCdB6TJ9YM1jk4SVwQYyKXrJECLVgGu/QpOVe59J9F5G86F9HtWCt cI0q6A7djPek5iwK73JbcL9Ugd61k3Rh+/PRe/n4jRCUgyGtFFKnFJLsN3ybVFiOk1h5 gDcOsVOcoXmVLePi+7Cm0kns5xf7Y/aObuePPVmwALScnmIyFcOiTDPSPfCdBYqU3mJS 4L36dDndx/Woxg7M/dcb1Oed6y/rBRsuSwlqkNOWm5CVXJW2QFrPkYLpa340jnvEC0tC hbQg== X-Forwarded-Encrypted: i=1; AJvYcCVSyZs3i5LGmFoyDTCKOjYoQugFdPva63iTQvFH64z1vImoK7wQdZMxhkfXJWetryqw0zGZ+P08mqAiPRXJ@lists.postgresql.org X-Gm-Message-State: AOJu0Yz5qV0AcPzvedjVaeD8KcG6k78pkoZjeDovyTJDMCt5sCkoUmQj Z8IvlzINrqNo06ARUjRT4Ck6sBVY8kl1ZczYZeUZrx/kwkwCRydaNphg X-Gm-Gg: ASbGncv/WfOVoSs4QY6WvXYWarKSxHi3IIaR4vECYI8b/8SJtFNmUDkC7PPd7bN6iIP yLzthmZduQyTPFQ4lQSSbfrzYCaXb+T6siLgm/CeeDh8kZ4TIZJ1dSEzSqPuR/oJcqi6PADhpLW GPnzdDAyUzVtbq8XJn7dzsH9akyjM58quF8xD3O4X4AXhgJe9Ac8li34COMfsSCgFxOnYzgfX/3 jsefYH3ZFfXGjVIG9narJAvuOov2jB+pofgCkMNqkimOCbHlC19q0J6URoAs/OQC4h2MzJ79bey 0nOs4p4GyXkQ41Q8v8iix6G/OCPj9uQIZbl7E54YywRTTgM5NMMUQPoUlKa+ehC/VBM4BcvfYx4 Dvh6JTYqwJtu1ReXX1hZcaF2Jrkc+yXpwLcTX9esLWiu+8JOVmI3WqEPg8F2WJ6KWs4nfzNHkov tNtt2xZOxPDG3N95YRyetVTuA= X-Google-Smtp-Source: AGHT+IGKT+I/rk0eb805NAulrQ7K/2B3LwOXSrnwLvenPiPUfAL8PhtaZsOkSgROJ9wugaCiRPUuOA== X-Received: by 2002:a05:6e02:1c07:b0:3e3:c356:f5a6 with SMTP id e9e14a558f8ab-3e52596d901mr2503755ab.17.1754504054487; Wed, 06 Aug 2025 11:14:14 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-50aa01878d2sm2613113173.48.2025.08.06.11.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Aug 2025 11:14:14 -0700 (PDT) Date: Wed, 6 Aug 2025 13:14:12 -0500 From: Nathan Bossart To: Fujii Masao Cc: Mircea Cadariu , Laurenz Albe , "Zechman, Derek S" , Adrian Klaver , pgsql-hackers@lists.postgresql.org Subject: Re: analyze-in-stages post upgrade questions Message-ID: References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 06, 2025 at 11:25:53PM +0900, Fujii Masao wrote: > On Wed, Aug 6, 2025 at 1:01 PM Mircea Cadariu wrote: >> Overall, I like the change. But I have one question: should this be treated as >> a bug fix that we back-patch to supported branches, or is it more of >> an improvement that should only go into master? >> >> I reckon it might make sense to back-patch it to previous versions, as users might not upgrade always to the latest version. > > I understand your point. But on second thought, since the patch changes > behavior, I'm leaning toward treating it as an improvement, so it should > only go to master... I also am leaning towards treating this as v19 material. It's a nontrivial behavior change, and this option is useful for major version upgrades, which is an area that we really don't want to surprise users too much. Furthermore, auto-analyze doesn't process partitioned tables, either, so this introduces a bit of divergence. (I'd love to see that project picked up again someday. Perhaps I will take a gander...) -- nathan