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 1ugP8U-002bjs-KC for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jul 2025 14:47:31 +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 1ugP8T-008UKe-3V for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jul 2025 14:47: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.94.2) (envelope-from ) id 1ugP8S-008UKO-Ns for pgsql-hackers@lists.postgresql.org; Mon, 28 Jul 2025 14:47:29 +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 1ugP8R-001DmR-1C for pgsql-hackers@lists.postgresql.org; Mon, 28 Jul 2025 14:47:28 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3dc9e7d10bdso17483285ab.2 for ; Mon, 28 Jul 2025 07:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753714046; x=1754318846; 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=rCGXCwI18/CIzDk3+72HLGwAcuszKCoTodtPEFdmjbs=; b=TqDKoE1QOJjAVqqvMVaSS+Lwn1Qqlu+59XMoEp404xHX4RkeMr43FBw1daqppFHuGa hpU8DSiTyz/knedAROwoAhlXRl1coWqlEYkNUViM70UOWwof60N5r9vtzI4bX72J1nJU YUlUygFSfgfeuEzF7WEkOUUB5lJhiX/IeSZORj+PYQKo56KNdyF5fpKXwd11ZajOZ+Tr e6vGxeYzu0abCaeQHElRVNRHXCClLxGfT5fR8UPZI5vjQHe7nmx9Yv7gXyBwBz0dyDy5 6Qm59iZU77ezgF1s5GsCumnBYOWnwlaDmvkCCqLbf7pLk+o3gX1CRScRZFPslqV6fpTC PRBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753714046; x=1754318846; 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=rCGXCwI18/CIzDk3+72HLGwAcuszKCoTodtPEFdmjbs=; b=ew3XBI2y1KqNb4cTgh+wnJqCkqe0K6ILHUJYUeTjxSxO/5HZHwIpM9AQXIVBLvXP/T CyWJsrQs6qkFw0DYAgJ8YBdOR9Es74Me/Xj0Tuvk+r0QaXAQHGw4D0h0LTdCRuJPE/Rs l4FdUBQsZkjikAfK5heIVD+I6igXlODXMVu7WomfKJJ0LDdTwkxbdEAS5OuyXlXT/4eN RstCcRA1IQHUvYH3tf/N8COgAK0VAP7FR2IU8WW8NIrLPccwW4oyuDF4eGQpFD2L158y c4yw1chvmUik+1DnTNniG3HiaEgO8fJPKrnyiuLOualm3IH1r+QBRm6zmx/q5kz23rlh UCmA== X-Forwarded-Encrypted: i=1; AJvYcCUcAFEBBMRxhW8wH9QBTv4RcaA7d94Bn5je6kQuH8xX7IckSd8maylS8lL4xi2pkAI6pWHk0RB0UwpkqERw@lists.postgresql.org X-Gm-Message-State: AOJu0Yx23jbnxzbU8ELrBtCTYzqJea3jVOggpNeSjJWpJD2Ot5PJTm3W WEySO9X7akAPmT45fDF82OFGlbFGBFFMvzBgscES+IVKPPGRDY54BftI X-Gm-Gg: ASbGnctEotHuiKwh5OtdMwI7XxTqXhioWsrCSQuhjNwylP+QDe1U92yidPtrPD1M2nJ +2yIl9Pu+myzavZjsEVkYskGwwkU0xaySSRtgcIUGdDJd4NR9MIkLpTx9xHeUnNKUENVAFy659g cBFWqq2i+aGOIg0k+MkFVg7cV1G22KOm3AR+DIAqp0f9tp9MC+BKwPsjAaBnLI7r4QICpcM3igH i/IrBRb9GJsg0URpuz1flkHJSRMKr48Fthh46Hdx/uHGSEXBtroQIapWsOyoR12uET4vj2H8IbE ajvLluCp6j+dxTmJKp+GP78u8TKAuJczBdAln4IQS1A1UjY+xeKfOvii6WDkJOnf8xe8VkZS57z x4XkT9TPxbsBCvckZRQ4u/2vyTWLlKi2qTvssGSnBBBuXnmGbHmmdNjZv/oiWEmT2XAwvoyUXhp MwpZ54rHen9KkM X-Google-Smtp-Source: AGHT+IGGzaqDhLZdi+cLOOzfZqiV19Fvz1wb0U3tYmMXCBDiuKYr/FyTiO3OOh9WEPg39IDkQVoePw== X-Received: by 2002:a05:6e02:19ce:b0:3df:4159:8fe5 with SMTP id e9e14a558f8ab-3e3c525add1mr194528555ab.4.1753714045550; Mon, 28 Jul 2025 07:47:25 -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-508c91f2a80sm1784657173.46.2025.07.28.07.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jul 2025 07:47:24 -0700 (PDT) Date: Mon, 28 Jul 2025 09:47:22 -0500 From: Nathan Bossart To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Yhuel Cc: Corey Huinker , Bruce Momjian , "David G. Johnston" , John Naylor , Masahiko Sawada , Jeff Davis , jian he , Matthias van de Meent , Tom Lane , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Subject: Re: vacuumdb changes for stats import/export Message-ID: References: <4b94ca16-7a6d-4581-b2aa-4ea79dbc082a@dalibo.com> <8320fa2e-9200-46e2-b905-4a4d84707020@dalibo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8320fa2e-9200-46e2-b905-4a4d84707020@dalibo.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jul 27, 2025 at 12:46:44PM +0200, Frédéric Yhuel wrote: > Then it seems very unlikely that the query optimizer's choices become > transiently worse because of that, doesn't it? and this shouldn't be used to > justify this option, IMHO. I can't remember who wrote this line, but it was borrowed from the --analyze-in-stages description. The point is that if you use --analyze-in-stages without --missing-stats-only, there will be a period where existing statistics will be replaced with ones generated with lower statistics targets. Obviously, this wording isn't clear enough. We might need to either remove that sentence or add "When used in conjunction with --analyze-in-stages..." -- nathan