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 1uZFWB-000olO-7E for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 21:06:23 +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 1uZFW9-00BwWU-9E for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jul 2025 21:06:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZFW8-00BwWL-VI for pgsql-hackers@lists.postgresql.org; Tue, 08 Jul 2025 21:06:21 +0000 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uZFW7-006HVH-2W for pgsql-hackers@lists.postgresql.org; Tue, 08 Jul 2025 21:06:20 +0000 Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-874a68f6516so464476539f.2 for ; Tue, 08 Jul 2025 14:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752008779; x=1752613579; 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=F7ey9hEQBKRERYCuYLvCneV65RbnUmV60CIdCNik3wA=; b=KM5N6x90Vq04+86PWsSEfwwRfGl0fOPYzpFeWI9kNc1FKZxvWJsOsryUHZJpgcsmB2 eM0FqnR0x3E6uDWzJABCOB9mMEp5Fz41iVzlzqrx9My72B5zFSukjgYEdgDjATkr6NFZ KXNoE2I6iOqrSB6tv4WzGNhYAN37IROaR0IOV96mtsCtvsIx9+64C0+CvK7sU+hsgXF7 f3r3hQB0HlUz6x1RA+IEggD8W8pYiup+y5kLvd8MpTDEdOzbecF5Vazg1dAhXTWQ2BsH W01SkeOqTZwvw8E84QfhnD7EG4w+kEYQYyuvf9VPy2ATsZgTZScBLHQF3LxpU2Rxr9O5 7EHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752008779; x=1752613579; 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=F7ey9hEQBKRERYCuYLvCneV65RbnUmV60CIdCNik3wA=; b=Uu9DKbsnMv9bVCls/VsR0sitapGwNt8hzKXImv854XUDQGHBCQ4sMZAd0WfeAl4pbb sdXGpVUc7+MlYh2lBKNhuWYsE4bx9B1SypvMeBDsxhGnU2fMmp0TdUM2CaAV1FdicvX8 6aL1c+IoN98d3QAVRhDeFt4OPXTA7RCg+HNk+Nl4o65TShFRqIj7p53JyDGYo8Jgfj/w Z7VtRDjASS2f0MHSZ6gP5ldQfMWPcW5BzxSBtZP3OgR6OcotEM/RIn4fehSwiovHD8rs KyeCWXS3PM5ay0Mm5UrKvq+hmjB9po7h3OnSesD4/1NoWziB9+04IsDnGQ9z3jtR94Gj mlcg== X-Forwarded-Encrypted: i=1; AJvYcCVIhd+M15Q9XUr7CvM+u8ZteMIpfmPNZHt/T4PvXDBj0z62cshoYmrmgFsU+B6Ywhf415r4raIU/34/DbGu@lists.postgresql.org X-Gm-Message-State: AOJu0Yz/pkaYf15ZUP66yL4I85ekoHXywlOWl2QvcsAc1PfWEwj8rCp1 eHNBMu0aG8vp/56GIA/zbzkuM02NsfZRj66v7tIPXQUS5PLVMDT1wvuD+sYzaQ== X-Gm-Gg: ASbGncuC44dxixklNzx9M7FrNTEyKsNVT9euUbs7jgeYHCtTpuJamfNPd8UFD2FSbQp TRK4QUiQTh26Lxy9IFNqjviNAgwaSGYh7sZykgcgkkGwMoCsEj0QlAQlalQV2aRk+ZEfhy//1si bZixcscTkkJMj0PxH/tnFbfQ8LeZvje2F3RXQ3KcyWgUcFojN70T32PxO3Lrke9izbGnHUZjd7I rW45lUy7GSoSYjOCehytIJxJ4ZIpO6mHFvkHMLh7lyGJaHAStYqS5kOJzlysG4KDRwgEzBfEEFV tsfhKjCjbGDTVeCdmuoMp2H+gK4NZgM90NKaX8TybYcUzlRqNDtwhe1vohck+sn9YHJ+L6l7DYA oPGYrA87aKPakmtbCWPgarUeEQdtUbFkg2HVIOywWy9Jl8Qb6gwUK X-Google-Smtp-Source: AGHT+IGkZna22TeHTkqT8pV4gstPRUCMyCbcV27iH4/AXIGu+XRxGyv44QcUhMXe7KZSFAJQfz0Hyw== X-Received: by 2002:a05:6e02:b41:b0:3dd:cdf2:fea4 with SMTP id e9e14a558f8ab-3e1670ac635mr1926425ab.14.1752008778726; Tue, 08 Jul 2025 14:06:18 -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-503b5be74cdsm2310721173.84.2025.07.08.14.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jul 2025 14:06:18 -0700 (PDT) Date: Tue, 8 Jul 2025 16:06:16 -0500 From: Nathan Bossart To: Hannu Krosing Cc: Tom Lane , PostgreSQL Hackers Subject: Re: Horribly slow pg_upgrade performance with many Large Objects Message-ID: References: <4044567.1744128814@sss.pgh.pa.us> <4047312.1744130263@sss.pgh.pa.us> <4050387.1744132029@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 On Sun, Jul 06, 2025 at 02:48:08PM +0200, Hannu Krosing wrote: > Did a quick check of the patch and it seems to work ok. Thanks for taking a look. > What do you think of the idea of not dumping pg_shdepend here, but > instead adding the required entries after loading > pg_largeobject_metadata based on the contents of it ? While not dumping it might save a little space during upgrade, the query seems to be extremely slow. So, I don't see any strong advantage. -- nathan