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 1ucnaE-00HFhh-S5 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jul 2025 16:05:14 +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 1ucnaC-00E4YN-Jn for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jul 2025 16:05:13 +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 1ucnaC-00E4XA-9s for pgsql-hackers@lists.postgresql.org; Fri, 18 Jul 2025 16:05:12 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ucnaA-008Tjk-2h for pgsql-hackers@lists.postgresql.org; Fri, 18 Jul 2025 16:05:12 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3de252f75d7so19480285ab.3 for ; Fri, 18 Jul 2025 09:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752854708; x=1753459508; darn=lists.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=e3BKAQq2yRAI2xSM7LoC+EK6FRNUV5CqV3KKTZYfPhA=; b=PRJAUGWshvNXFOs/T+/kiB2Bn6AM8MZsQT1J8YeVhurlyhfC8T9d4tfoatgx01cic2 v3zU2CL1LOAtNlVaPp9Cza0OyDJ5eiIC13LTpzlCgzyvZCWT53WCrSi771D5Y9nMaQ7B PHxtiPbV14/VW0WbdOn1+WlBekCc9B8YCd2VZVMsnmOEhbLo/ZFv91u1I4BF5CAkxaBl LWhZZFEZZJQYvaaR4w8WfbckaYeBt1znsW3lHDWJk2S61DnG6dEinLN7NzED8rCOA5Lk zhIDTb7nixKv4PKnELkTTdIQW0CVv84UeWW1AXQ2JL5Nze4p1gQxJuhBBDy9s4D20ffb 5AlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752854708; x=1753459508; 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=e3BKAQq2yRAI2xSM7LoC+EK6FRNUV5CqV3KKTZYfPhA=; b=XOgPNQY/gbb2ncSDwO2RUtytTnoYD+RaInsUTukTiauj9nNNfA6piWSX2OyyS/7FPj 73fWBaJLUjuVEy6EbLlWls6UDJhZmpaOhSFSv675Q7n9fwdXd1FbDyVlyzyNEHX46YC6 4Bn7r7jrhi+RpTgfdFo4Zd6D0T7s8+uZB3l9ZDqSFfUoEfgidRTCYj7naV9jqw1DkkTK a7+RaQBzk/OvtkNPTtRnyg0QCpqyRccuhdumgJ90AsFz5WJdB+Um9NTIX8E3cw0UWmou VzD9pQxD4x6hw21h4ktrBs3zvqXia65L3WCrQr1hI22uDnc+7HKQOL7epEzOOM+69C96 Kx5Q== X-Forwarded-Encrypted: i=1; AJvYcCUliUDqHFPPOTcUZGf3+22JmPeX+OmLgBPt+/O7IkM9UoxMbcXRTh7VsJUC450uwrU/SPWmVXT+N4GhlDyc@lists.postgresql.org X-Gm-Message-State: AOJu0Yw1FtI5IZsqxI+04rGC8roH3lHkc4NjzLOhk6I8388zvIGfvXZP oZi6mb+cuFJWxGwZtB4m+8Yd8WmVwzAOdvYLa7a5XY+6sozyY/p7/NTBopCKcg== X-Gm-Gg: ASbGncubBUWMbyc8KUi+BBYLeFCK3gBSJg+q1L0uetZ/pcnRyPRnbAHgU+jX7hzMQZd WNzcz0uswrqT3pseKUigGyPeUIk9lLU2wg3YgPCbS3bYv+r46BtpUHTCeGPINt5FI488NeyexqP 6/O3U0LsNs8UmRA+cUSGenUkdQmeFlUOKaZ1ea9c8V7fZO03gre61eVd+MoaPK0zgDBcYmwSsAB QSIMwwOpeQIIUuuiovPSd0ehxjRyZgqmP044bhQX5tFzSW2tuYZJ0M/uH8f//CQC8/qp7XOGkV0 0hrq28HxhzM2aJEKQQL64ASTCLX35DF81EAO27IpXcd7ziGx7tGiXVdIEuH99tAghmn4aYHVEnd ARh36ODuo9P8tIeLvVJhm3a/MyQM+jfNiwXGTYGzCCOzcM8huU0ASmvi1tQY2Nkxv+CpzM1EIXx Ik8c6eq1L0imrLTbJa1d5bXJU= X-Google-Smtp-Source: AGHT+IEEKNDNPtM/7Ko6Ud4nvtaWBTWhyy03CCIYW8UhNBi0oy7qcW0WiI/Y+yTo7sx3hzq4A33e9g== X-Received: by 2002:a05:6e02:18cf:b0:3e2:988a:101a with SMTP id e9e14a558f8ab-3e2988a1365mr26756035ab.2.1752854707223; Fri, 18 Jul 2025 09:05:07 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5084c9b4e34sm390301173.77.2025.07.18.09.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jul 2025 09:05:06 -0700 (PDT) Date: Fri, 18 Jul 2025 11:05:04 -0500 From: Nathan Bossart To: Tom Lane Cc: Nitin Motiani , Hannu Krosing , PostgreSQL Hackers Subject: Re: Horribly slow pg_upgrade performance with many Large Objects Message-ID: References: <700576.1752514083@sss.pgh.pa.us> 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 Committed. I'm cautiously optimistic that we can find some better gains for upgrades from v16 and newer. That would involve dumping lo_create() commands for all LOs with comments/seclabels, dumping the relevant pg_shdepend rows, and then copying/linking the pg_largeobject_metadata files like we did prior to v12. -- nathan