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 1q4BJS-0006lX-D7 for pgsql-general@arkaria.postgresql.org; Wed, 31 May 2023 02: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 1q4BJR-00030L-4s for pgsql-general@arkaria.postgresql.org; Wed, 31 May 2023 02:11:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4BJQ-0002zy-R6 for pgsql-general@lists.postgresql.org; Wed, 31 May 2023 02:11:44 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q4BJL-002oWu-QG; Wed, 31 May 2023 02:11:43 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1q4BJK-003GGf-2V; Tue, 30 May 2023 22:11:38 -0400 Date: Tue, 30 May 2023 22:11:38 -0400 From: Bruce Momjian To: David Rowley Cc: "Jonathan S. Katz" , Ron , pgsql-general@lists.postgresql.org, Andres Freund Subject: Re: Pg 16: will pg_dump & pg_restore be faster? Message-ID: References: <7e1a8736-d74c-8de1-679f-f47b250a13cc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 31, 2023 at 02:05:10PM +1200, David Rowley wrote: > On Wed, 31 May 2023 at 13:13, Bruce Momjian wrote: > > There is no mention of concurrency being a requirement. Is it wrong? I > > think there was a question of whether you had to add _multiple_ blocks > > ot get a benefit, not if concurrency was needed. This email about the > > release notes didn't mention the concurrent requirement: > > My understanding had been that concurrency was required, but I see the > commit message for 00d1e02be mentions: > > > Even single threaded > > COPY is measurably faster, primarily due to not dirtying pages while > > extending, if supported by the operating system (see commit 4d330a61bb1). > > If that's the case then maybe the beta release notes could be edited > slightly to reflect this. Maybe something like: > > "Relation extensions have been improved allowing faster bulk loading > of data using COPY. These improvements are more significant when > multiple processes are concurrently loading data into the same table." The release notes don't normally get into details on the magnitude of the improvement in various circumstances. > The current text of "PostgreSQL 16 can also improve the performance of > concurrent bulk loading of data using COPY up to 300%." does lead me > to believe that nothing has been done to improve things when only a > single backend is involved. Yes, agreed. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.