Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uNFHS-00F5dV-9a for pgsql-performance@arkaria.postgresql.org; Thu, 05 Jun 2025 18:25:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uNFHQ-00Cs2h-0x for pgsql-performance@arkaria.postgresql.org; Thu, 05 Jun 2025 18:25:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uNFHP-00Cs2Z-0K for pgsql-performance@lists.postgresql.org; Thu, 05 Jun 2025 18:25:32 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uNFHM-000PEP-1l for pgsql-performance@lists.postgresql.org; Thu, 05 Jun 2025 18:25:31 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id D2AB5254010C; Thu, 5 Jun 2025 14:25:25 -0400 (EDT) Received: from phl-imap-17 ([10.202.2.105]) by phl-compute-02.internal (MEProxy); Thu, 05 Jun 2025 14:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mahdibm.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1749147925; x=1749234325; bh=Y96LCM4m1k AdXbTCb+n08NDF2wFJ9KDIjYIYUkP/yjs=; b=O6saWEt16G1/+s1JanYgsM0nEG 2TfDk/OVbxRpBlV0quMdaNl9owNf3R++xF5nSnB4EK8oZ4hfGRmMHNQKM8nlIIF4 E3X2GphKffCwVDf7sBJ7pOo88DH+UcntzyC8l8qVA/gNOYRmceUnBHQIfz8SbTDe YoHCKyosUKhPF16QpTcFahcAlfJZysHrk3DBW/3HPEY6S+cjN3K2KcGVd71bRUag 315F3Hsu8WfQRYJA22qXZR0JkohHs7sYxtoYoM4gkxDAll9nNAuuD0tYGfr2JyV1 LUDixpi9XZWhtp8J3V7x9OCpwPB6HboZP+CW2kiuYdxLunipglymsGT9MaTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1749147925; x=1749234325; bh=Y96LCM4m1kAdXbTCb+n08NDF2wFJ9KDIjYI YUkP/yjs=; b=O683lmB2F0GK4aGh9YKSXqo2CGevd42ZvNvYaCXoD79BktXRHLi EO5CcwuK4dOO0nwEUz4KUI669Gfh1RsPlXqhs1TUwRmHOqIQzN8J5tC4JKUbIdRO QpAJ7wtIGpovOufyCJ8Bi4YrA6aPvucCcIKm5p/s6mEJ8gf7vUa6ChFiNFxu3Pld 4TEKw5C6tsDJJUZFzHLwqbuZ+1vDKVOi9F0MxTlgtEDIg1mnxWpeJvDlql5a0QaJ tv1vD+dREr7opLbiLmyFS9nSpp2KwLV7Rbda5Hv2s3hU2fytNditQtzuX+dYKYQy 7Kh+AIBpVrh3RbXpMH57Oo+RNov/34ouTtg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdefleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgesrgdtreerredttden ucfhrhhomhepfdforghhughiuceurghhrhgrmhhifdcuoehpghhsqhhlsehmrghhughisg hmrdgtohhmqeenucggtffrrghtthgvrhhnpeettddvtdefgfevleegjefgtdegjeeghfet tdffjeelveevvdfgjedutdegjedvvdenucffohhmrghinhepghhithhhuhgsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhgshhq lhesmhgrhhguihgsmhdrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhr tghpthhtoheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhrtghpthhtohepph hgshhqlhdqphgvrhhfohhrmhgrnhgtvgeslhhishhtshdrphhoshhtghhrvghsqhhlrdho rhhgpdhrtghpthhtohepphhgshhqlhesmhgrhhguihgsmhdrtghomh X-ME-Proxy: Feedback-ID: ib7d648f3:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 1A534C40068; Thu, 5 Jun 2025 14:25:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T9df08ae4920d62bd Date: Thu, 05 Jun 2025 21:55:04 +0330 From: "Mahdi Bahrami" To: "Mahdi Bahrami" , "Thomas Munro" Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , pgsql-performance@lists.postgresql.org Message-Id: <2ba6b290-8322-4c48-a6a1-65409220d1c3@app.fastmail.com> In-Reply-To: References: <202505271507.xvfbdztae74a@alvherre.pgsql> Subject: Re: Database creation performance drop going from pg 14 to pg 15+ Content-Type: multipart/alternative; boundary=4a2de8a4d9014f84897081244443695e List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4a2de8a4d9014f84897081244443695e Content-Type: text/plain Content-Transfer-Encoding: 7bit Here's what the OP of the PostgresNIO issue has mentioned about what performance impact usage of `file_copy` has in his setup (https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/pull/3812): `Series: Default Strategy Suite AllTests passed after 5.081 seconds Suite AllTests passed after 5.274 seconds Suite AllTests passed after 5.306 seconds Suite AllTests passed after 5.224 seconds Suite AllTests passed after 6.343 seconds Suite AllTests passed after 5.450 seconds Series: file_copy Strategy Suite AllTests passed after 4.729 seconds Suite AllTests passed after 4.755 seconds Suite AllTests passed after 4.739 seconds Suite AllTests passed after 4.772 seconds Suite AllTests passed after 4.866 seconds Suite AllTests passed after 4.855 seconds` This is them running the tests in parallel multiple times with and without file_copy, just to benchmark. Overall ~0.5-6s / ~10% speedup, which isn't too significant at this level, but is still a noticeable relative improvement. --4a2de8a4d9014f84897081244443695e Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Here's what = the OP of the PostgresNIO issue has mentioned about what performance imp= act usage of `file_copy` has in his setup (https://github.co= m/SwiftPackageIndex/SwiftPackageIndex-Server/pull/3812):
<= br>
Series: Default Strategy=0ASuite AllTests p=
assed after 5.081 seconds=0ASuite AllTests passed after 5.274 seconds=0A=
Suite AllTests passed after 5.306 seconds=0ASuite AllTests passed after =
5.224 seconds=0ASuite AllTests passed after 6.343 seconds=0ASuite AllTes=
ts passed after 5.450 seconds=0ASeries: file_copy Strategy=0ASuite AllTe=
sts passed after 4.729 seconds=0ASuite AllTests passed after 4.755 secon=
ds=0ASuite AllTests passed after 4.739 seconds=0ASuite AllTests passed a=
fter 4.772 seconds=0ASuite AllTests passed after 4.866 seconds=0ASuite A=
llTests passed after 4.855 seconds

This is them run= ning the tests in parallel multiple times with and without file_copy, ju= st to benchmark.
Overall ~0.5-6s / ~10% speedup, which isn't too sign= ificant at this level, but is still a noticeable relative improvement.

--4a2de8a4d9014f84897081244443695e--