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 1sEuhz-004o4Q-Uj for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jun 2024 17:46:01 +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 1sEuhz-00A8Ol-Lz for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Jun 2024 17:45:59 +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 1sEuhz-00A8Od-9j for pgsql-hackers@lists.postgresql.org; Wed, 05 Jun 2024 17:45:59 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sEuhs-0009XB-Lv for pgsql-hackers@postgresql.org; Wed, 05 Jun 2024 17:45:58 +0000 Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7e252b2cfd8so4982439f.0 for ; Wed, 05 Jun 2024 10:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717609550; x=1718214350; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ShFBxHxn1nDTQcxDqg6QaPGmcrydTMCcfFO0MoQCD4w=; b=YHgmpI42pGcObYDZIadaPPXimAF3nmUMQSysyczzTta02dIhqmTE/EIWHPi4z+/pwL cwKGvFOMk1fs8TENh1UhChc/kEN6FzRk6L/1qTUVjphRt0R/WGeJ44Z+lZuJTOKfucyS Cz+eu4QnB4NkcSRM5rxeUZDB7upWDRISjI09Ev/SZT/XQOpBPdH0SRC/Sdb9NJOWBrbz yzQoaCXrF5ETj4O6aSY/+sXRFrX+mTS8pXwMm4oeW25/605YlVqPPSmCsGsiLXNQ4CDg A1dERPM9lHVZbjQwcRKvW8NdMzhgvVKTRm+1jcqiwAyl9boDzf5VUBUqtEJSb6PyP9f/ 02nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717609550; x=1718214350; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ShFBxHxn1nDTQcxDqg6QaPGmcrydTMCcfFO0MoQCD4w=; b=g0XGmHLWcDyH4TQQQNmW8D2dXiRtAEq8sZXWHPvdIxTvxD6HCl0Olew2o40lDCAtZ+ JvW8tSLNXdeXdWszkd6BJo/Hvyr5ZNIAJsJf+pzrvnY7pUjVYZC7AKb/RR4KtsXk6hHe gxsmodUUDhMdu401xdBsg1eHaNcjdU0qwRixWUvGpojHQhWKNnPzmwDhPe9W3BoIUurq rze8rAyI9vQ91kIyXSfgQJdScZYWCS7Pw6pt7ThYgBv61J8g/8w9uF6Zs5FL/hm/MzB2 sRmWUqsvAqaZ7Z9ceVM4l8FGqyFjhbpCa6D+6kJIFXdfbt4DOTbKR29x9jaJTAlrTP13 vsZA== X-Forwarded-Encrypted: i=1; AJvYcCUxELQrKSfD22/nqACF/XEERG1li9aRbDGwoElLARzgjwh1BzLLOZp7QFVBEOukTnhCplE/W/FteYSG3PrdRephI6gDTFPtdsuuW0zc X-Gm-Message-State: AOJu0Yw/i9E6hBeVU0ao/jOCjXbDmBUuHzAKKk/SIlRPubABneBXwVAG qEDu1NNR/Mj+V8hTInrO0fLZnwc/b85NbZWN/qwv+zoAAPYwJt17 X-Google-Smtp-Source: AGHT+IGPlPHagnAVHqnwY7c/eeuMHW/yCI/lmP9owpERUam1XQwdPQBAgyiI0dneo2EdoFaGRD/8gQ== X-Received: by 2002:a05:6602:27cf:b0:7e7:4c86:61d0 with SMTP id ca18e2360f4ac-7eb3c9113bfmr377715939f.7.1717609550230; Wed, 05 Jun 2024 10:45:50 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-7eafe5f0237sm301186339f.41.2024.06.05.10.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 10:45:49 -0700 (PDT) Date: Wed, 5 Jun 2024 12:45:48 -0500 From: Nathan Bossart To: Matthias van de Meent Cc: Ranier Vilela , pgsql-hackers@postgresql.org Subject: Re: use CREATE DATABASE STRATEGY = FILE_COPY in pg_upgrade Message-ID: References: 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, Jun 05, 2024 at 07:28:42PM +0200, Matthias van de Meent wrote: > As for "on my laptop", that sounds very reasonable, but could you > check the performance on systems with larger shared buffer > configurations? I'd imagine (but haven't checked) that binary upgrade > target systems may already be using the shared_buffers from their > source system, which would cause a severe regression when the > to-be-upgraded system has large shared buffers. For initdb the > database size is known in advance and shared_buffers is approximately > empty, but the same is not (always) true when we're doing binary > upgrades. Will do. FWIW I haven't had much luck improving pg_upgrade times by adjusting server settings, but I also haven't explored it all that much. -- nathan