Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQ4aQ-0007CR-6k for pgsql-advocacy@arkaria.postgresql.org; Mon, 13 May 2019 06:37:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQ4aO-0006bS-SK for pgsql-advocacy@arkaria.postgresql.org; Mon, 13 May 2019 06:37:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQ4aO-0006bL-Kw for pgsql-advocacy@lists.postgresql.org; Mon, 13 May 2019 06:37:20 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQ4aL-0000BI-Nq; Mon, 13 May 2019 06:37:20 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x4D6bDBB030617; Mon, 13 May 2019 15:37:13 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 0D11C638A7E; Mon, 13 May 2019 15:37:13 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 00FB4638A7D; Mon, 13 May 2019 15:37:13 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.61]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id EEC1F40054B; Mon, 13 May 2019 15:37:12 +0900 (JST) Subject: Re: PostgreSQL 12: Feature Highlights References: <830415f7-78ec-ef7b-0f73-0e810ef87f91@postgresql.org> From: Amit Langote Message-ID: <3ea29ec1-38e9-b5bd-571e-8d1f85175c5a@lab.ntt.co.jp> Date: Mon, 13 May 2019 15:37:05 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: David Rowley , Justin Clift Cc: "Jonathan S. Katz" , pgsql-advocacy@lists.postgresql.org X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi David, On 2019/05/13 11:19, David Rowley wrote: > On Mon, 13 May 2019 at 13:50, Justin Clift wrote: >> >> On 2019-05-13 09:47, David Rowley wrote: >>> On Mon, 13 May 2019 at 03:28, Jonathan S. Katz >>> wrote: >>>> - Performance, e.g. enhanced partition pruning, COPY performance, >>>> ATTACH >>> >>> I don't think it's very accurate to say that the performance of >>> partition pruning has been improved. Really the improvement there is >>> due to the change in the order of operations, where we now perform >>> pruning before fetching partition meta-data. Pruning itself, I don't >>> believe became any faster in PG12. There were, however various tweaks >>> to improve performance of some operations around run-time partition >>> pruning both in the planner and during execution, these, however, are >>> not improvements to pruning itself, but more the operations around >>> setting up pruning and handling what happens after pruning takes >>> place. Bruce has now changed the release notes to mention "Improve >>> performance of many operations on partitioned tables", which seems >>> like a more accurate generalisation of what was improved, although, I >>> still think it's overly vague. >> >> Sounds like "partition pruning is now more efficient". eg less memory >> usage (?), with a side effect of better performance leading from that >> (?) > > I think the headline item needs to be about the fact that partitioning > can now more easily handle larger numbers of partitions. To say > pruning is more efficient is just a chapter in the story. The big > users of partitioning want and need the entire book. > > Perhaps something along the lines of: > > - Improve optimizer and executor to allow them to more easily handle > larger numbers of partitions. It's true that optimizer and executor can now handle larger number of partitions efficiently, but the improvements in this release will only be meaningful to workloads where partition pruning is crucial, so I don't see why mentioning "pruning" is so misleading. Perhaps, it would be slightly misleading to not mention it, because readers might think that queries like this one: select count(*) from partitioned_table; are now faster in v12, whereas AFAIK, they perform perform more or less the same as in v11. Thanks, Amit