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 1u2BA1-00EFId-Gp for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2025 15:46:49 +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 1u2B9z-00AUse-VB for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Apr 2025 15:46:48 +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 1u2B9z-00AUsU-JM for pgsql-hackers@lists.postgresql.org; Tue, 08 Apr 2025 15:46:47 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u2B9x-0049vB-1u for pgsql-hackers@lists.postgresql.org; Tue, 08 Apr 2025 15:46:47 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-2c12b7af278so3961036fac.0 for ; Tue, 08 Apr 2025 08:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744127203; x=1744732003; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=kaDKeihl4+tSERlzWQBzd0VH7ew+rKYsCxQyxR6SITo=; b=W81FMy99LoKOIID2XlZN5QFC7ZgrVWJ+su62tHX1Wna50j7xplOMRdOsAScleKKSvs ef5sJfLH7z1LiGOum7q5K/W3DhJDcLD9MSB4Qkw57w4nbxvGy6NMgnrW2tTVAEoZDCV6 8annMhxP1vMP49I6EA193Z3mIWRdR6Qo7tjeGXczdVkBxbkaQqCWE7y2LWinNBqFEu6y oxVhcLxyf3V6aaEkntruYQKpLs2c4zmbRqHd3ytVDROZ1HJzVng9AU2uH3bfpgAEdh49 Key2OJK34myPIIt+rIfL+bN+3T5uqK3znFScFQjAd4ORnGgr/iGjrYHaimwxLN8XgV80 8+/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744127203; x=1744732003; h=in-reply-to:content-transfer-encoding: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=kaDKeihl4+tSERlzWQBzd0VH7ew+rKYsCxQyxR6SITo=; b=epICATFfoSALGr4cDDTHaajnELcRWP5MrrGNuF4p61Q24cYBU5BzlZxaX+yzbQyLel uUCH23AsUcKWT4d3JoANOsYUTvtlwMkYLKVGkDcZzJHlOojXi0QGEyfzlkZZWnq5X7CI 3xOLp2EmMlT3neMMHJjxRwCLbWj9MvZRsARhmGqfCr+HMuomLCEGOffEuYKci4vWoMSw fvZXuCDmigR1AlkS5JvKH/FWILwpvUX0fXeTNzRO/WYx6aVDhlpQSlWxbIKqNgfmadDt 0lcCZcr3PZofI1MrrKoHHwY43cQEQI3U7Z/XuLkwiRhAbB54E4U+ECaKD8eD7vaA6wCM L8hw== X-Gm-Message-State: AOJu0YwYznKNGA4KajVcxLV2pXdOJ5OlzqE1D+/IQSnTVVyibOOgflps WzkXFY4IyCc14Zhnh+PA+54FWTvbV5ZhiB8LipEq691wkA0yXoynJ68JFg== X-Gm-Gg: ASbGncvtxO45MCXad0Z3dLvDFUmLJGErGxshnWNvSpkuHUQnQeZ1vyGUZ1nBpx6qtYS fi4TpONWyodCELrFAuUHMizesAqBHlZLyd6bAVEpaFxfx647Xinmd8mqbWBe0hcUNCPvS8tPcqn Hh1K/DMGKLcDm9WFduu6tFHfD9ovdjdRxImt5Ztuyg6brRL1KbYiTy+5nhWlmH6yDebuW35Paqt hKxFVSgFZ7u6nDurSbOPm5YVTrNNwp0zp9hfu4jPs+Pw9gJbxHqI4+9n8e6wvQZjGMCrfQEvhPr IwUzCvvDIRfJi41jPkDw+N8cD7H/xwZ17dColhyHnMmQWOthO7XOVbDSeOUMglCupAui5MOeDJr DU1K9fKAuPrDqEgCrPQg1t/K79uBIk4gfdK7x6P4X4/6nWA== X-Google-Smtp-Source: AGHT+IFnlP7PU5ztApaP9TQ/hZXmMuIlXZkCjxI/DUS2LswzaP8qNAAB4w7iQze54BytIdjOqMw9aQ== X-Received: by 2002:a05:6871:650e:b0:2b8:92f0:ba5d with SMTP id 586e51a60fabf-2d06495cc55mr2282036fac.8.1744127203335; Tue, 08 Apr 2025 08:46:43 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2cc84bc0455sm2713167fac.41.2025.04.08.08.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Apr 2025 08:46:42 -0700 (PDT) Date: Tue, 8 Apr 2025 10:46:41 -0500 From: Nathan Bossart To: Hannu Krosing Cc: PostgreSQL Hackers Subject: Re: Horribly slow pg_upgrade performance with many Large Objects Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 08, 2025 at 09:35:24AM +0200, Hannu Krosing wrote: > On Tue, Apr 8, 2025 at 12:17 AM Nathan Bossart wrote: >> That being said, I >> regularly hear about slow upgrades with many LOs, so I think it'd be >> worthwhile to try to improve matters in v19. > > Changing the LO export to dumping pg_largeobject_metadata content > instead of creating the LOs should be a nice small change confined to > pg_dump --binary-upgrade only so perhaps we could squeeze it in v18 > still. Feature freeze for v18 was ~4 hours ago, so unfortunately this is v19 material at this point. -- nathan