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 1hPGlQ-0006ZM-Th for pgsql-committers@arkaria.postgresql.org; Sat, 11 May 2019 01:25:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hPGlP-0003b4-Lq for pgsql-committers@arkaria.postgresql.org; Sat, 11 May 2019 01:25:23 +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 1hPGlP-0003Y4-Dy for pgsql-committers@lists.postgresql.org; Sat, 11 May 2019 01:25:23 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPGlM-0001Xm-Si for pgsql-committers@lists.postgresql.org; Sat, 11 May 2019 01:25:23 +0000 Received: from bruce by momjian.us with local (Exim 4.89) (envelope-from ) id 1hPGlK-0007f0-9H; Fri, 10 May 2019 21:25:18 -0400 Date: Fri, 10 May 2019 21:25:18 -0400 From: Bruce Momjian To: Amit Langote Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: docs: fist draft version of the PG 12 release notes Message-ID: <20190511012518.ogp3kl6x4g723daw@momjian.us> References: <3f0333be-fd32-55f2-9817-5853a6bbd233@lab.ntt.co.jp> <20190509205737.t4zbxyoripvioy3n@momjian.us> <5936b052-5d92-a2c9-75d2-0245fb2330b5@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5936b052-5d92-a2c9-75d2-0245fb2330b5@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 10, 2019 at 10:54:32AM +0900, Amit Langote wrote: > On 2019/05/10 5:57, Bruce Momjian wrote: > > So, in this case, there were so many partitioning improvements, I just > > lumped them into one item. I think everyone can consider partitions to > > perform much better in PG 12. Is there something more specific we > > should communicate here? > > So the current text, which is: > > + > +Improve performance of pruning many partitions (Amit Langote, David > Rowley, Tom Lane, Álvaro Herrera) > + > + > + > +Now thousands of partitions can be pruned efficiently. > + > + > > mentions improving "pruning" efficiency which applies only to > SELECT/UPDATE/DELETE queries and can be attributed to only one of the many > commits listed with this item. Performance of short INSERTs (as opposed > to bulk-inserts including COPY) is also improved, but it has nothing to do > "pruning". > > That said, efficiency is improved in both cases by not doing redundant > work for partitions that are not affected by the query, that is, > > * for partitions which are pruned for a given SELECT/UPDATE/DELETE query > (planner improvement) > > * for partitions which are not inserted into by a given INSERT statement > (executor improvement, part of which was done in v11 but v11 still locks > *all* partitions whereas v12 will only lock those that are inserted into) > > > So, it might be fair to lump them, but maybe not use the word "pruning", > because it describes only subset of affected workloads. I struggled to talk about partitioning since there were so many improvements. I favored a more generic item that just suggested dramatic improvements. I have modified the text to: Improve performance of many operations on partitioned tables (Amit Langote, David Rowley, Tom Lane, Álvaro Herrera) Also, thousands of partitions can now be pruned efficiently. Committed. Does that work? -- 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 +