Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8bLu-0005Mm-Jj for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Jan 2022 05:11:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8bLt-0000Sn-79 for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Jan 2022 05:11:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8bLs-0000Se-Qq for pgsql-hackers@lists.postgresql.org; Sat, 15 Jan 2022 05:11:44 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8bLq-00079E-8z for pgsql-hackers@postgresql.org; Sat, 15 Jan 2022 05:11:44 +0000 Received: by mail-io1-xd2c.google.com with SMTP id a12so9952588iod.9 for ; Fri, 14 Jan 2022 21:11:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=a9oRIOplvQuGEZRtLZ5QS+0EpDopyFT6ZDH2034HXHA=; b=ljqmTarOe2qDY66oIEysNHO1ImM0xRaFObKiNZH10p3CHes0uKO7MlzX+TSeTjs6Vb 1rCO1oD/Mwm2djIrqC2kG14pytSulB6OZWkkZ++QrfPw09/7U7k3ygq/MkEFda6PsRNo 7rJk9H+hMIhUVFl9wuCX3f5YYLLqn4W69n7B7a1nf6Pr+2SCTJwz21+0ORMpxhfZdQ0s 9TzdZZYmpmMSNPWP3Z5k1W8fi4bPU094mhw9JAiWUwkCQ70bOYl2pLjZ0wtwgg0rWQ5l Eiftm53wEHxJ0IggQPB2HXZ+o5/AY6BBgbknk4dgt5t4Dscz5jrex8LUw3hQRjEqJVyN GMQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=a9oRIOplvQuGEZRtLZ5QS+0EpDopyFT6ZDH2034HXHA=; b=Q5RgMnS0zwBmGuzjv8g/woLUtdqaLFE91RZ4YR2HRqy4Rgs6hAW67hV83MtTgwFGdT 15ihuEP+EP1nVGHSs6272FNjYVD1UJ+B6rt+h2hx99+GZVv1vXRXrykEBKIbcqRlkyOX IVEVM5d94NzU99Oap+LbTt+QzUH/1zme2avBscRRVWE541Gdh8xfFxieKPNh3RaMvjJg Z3T/o8b5pB83UBlzIt2L0iTRgWgFDoe7pHLJROKE6LQj299Wl71QLuKOZ5k7Mo88uFqj b8YKz2w2sZzrPOTZraMn10a/s4DJXdr0nzeoN42cGC99X++JWkrYNPXvB9JI5SUM6IxX /dSA== X-Gm-Message-State: AOAM531Sb/Y4tZboFJutOVSqbySdqo4qLXg9hCohkYzvCZLe9FUvjHiW A5D3LLjx1B9SezdV4nhft2NAFg== X-Google-Smtp-Source: ABdhPJwJqTrSMZIHahFoD/2TvFKls/i3HEBrfVwBdzao/XJ9HrjycwfoFB6VkAk8EmIpLuXkSI5mXw== X-Received: by 2002:a02:ce47:: with SMTP id y7mr5458034jar.75.1642223500142; Fri, 14 Jan 2022 21:11:40 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id l17sm4703265ilt.29.2022.01.14.21.11.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jan 2022 21:11:39 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id C6014803B19; Fri, 14 Jan 2022 23:11:38 -0600 (CST) Date: Fri, 14 Jan 2022 23:11:38 -0600 From: Justin Pryzby To: Tomas Vondra Cc: Zhihong Yu , Jaime Casanova , pgsql-hackers@postgresql.org Subject: Re: extended stats on partitioned tables Message-ID: <20220115051138.GR14051@telsasoft.com> References: <46f37069-55cb-db6a-a15a-e351a2606592@enterprisedb.com> <20211103231904.GP17618@telsasoft.com> <689accb1-76e8-5115-6ed0-336749cdca57@enterprisedb.com> <20211203052411.GU17618@telsasoft.com> <8052505e-2dd2-e8cb-26c9-cbb5dff7d750@enterprisedb.com> <20211212213210.GP17618@telsasoft.com> <20211213135348.GT17618@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Dec 13, 2021 at 09:40:09PM +0100, Tomas Vondra wrote: > 1) If the table is a separate relation (not part of an inheritance > tree), this should make no difference. -> OK > > 2) If the table is using "old" inheritance, this reverts back to > pre-regression behavior. So people will keep using the old statistics > until the ANALYZE, and we need to tell them to ANALYZE or something. > > 3) If the table is using partitioning, it's guaranteed to be empty and > there are no stats at all. Again, we should tell people to run ANALYZE. I think these can be mentioned in the commit message, which can end up in the minor release notes as a recommendation to rerun ANALYZE. Thanks for pushing 0001. -- Justin