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 1hReup-0006Cd-SU for pgsql-advocacy@arkaria.postgresql.org; Fri, 17 May 2019 15:37:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hReuo-0003Ax-Hy for pgsql-advocacy@arkaria.postgresql.org; Fri, 17 May 2019 15:36:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hReuo-00034x-7g for pgsql-advocacy@lists.postgresql.org; Fri, 17 May 2019 15:36:58 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hReul-0008Nf-PK; Fri, 17 May 2019 15:36:57 +0000 Received: from bruce by momjian.us with local (Exim 4.89) (envelope-from ) id 1hReuj-00031A-Th; Fri, 17 May 2019 11:36:53 -0400 Date: Fri, 17 May 2019 11:36:53 -0400 From: Bruce Momjian To: Amit Langote Cc: David Rowley , "Jonathan S. Katz" , pgsql-advocacy@lists.postgresql.org Subject: Re: PostgreSQL 12: Feature Highlights Message-ID: <20190517153653.pmolnulev6imwsn3@momjian.us> References: <830415f7-78ec-ef7b-0f73-0e810ef87f91@postgresql.org> <20190516182628.kbkiajfnlooocgyg@momjian.us> <0cf10a27-c6a0-de4a-cd20-ab7493ea7422@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0cf10a27-c6a0-de4a-cd20-ab7493ea7422@lab.ntt.co.jp> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, May 17, 2019 at 07:56:55PM +0900, Amit Langote wrote: > On 2019/05/17 3:26, Bruce Momjian wrote: > > I think the more specific we make the partition description, the more > > limited it will appear to be. I think almost all partition operations > > will appear to be faster with PG 12, even if users can't articulate > > exactly why. > > I agree that the current description captures at a high level the many > changes that made it possible. Although, a couple of commits listed with > this item don't have much to do with that description, AFAICT. Especially > 959d00e9d [1], which taught the planner to leverage the ordering imposed > on partitions by range partitioning. With that commit, getting ordered > output from partitioned tables is now much quicker, especially with a > LIMIT clause. You can tell that it sounds clearly unrelated to the > description we have now, which is "processing thousands of partitions is Yes, it does. I added this text and moved the commit item: Avoid sorting when partitions are already being scanned in the necessary order (David Rowley) I certainly strugged to understand the maze of commits related to partitioning. > quicker when only small numbers of partitions are touched". Some users of > partitioning may not be interested in the use case described as vastly > improved, but they may be delighted to hear about items such as the > aforementioned commit. Also, I suspect that the users whose use cases > pushed them to use partitioning in the first place may also be the ones > who do some of their own research about partitioning and eventually know > many optimizations that are possible with it. So, it's perhaps a good > idea to let them know about such optimizations through release notes if > it's the only place to put them, which I believe is the case with this > particular item. There are not that many commits to be taken out of the > existing item and described separately, just this one I think. Yes. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +