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 1tub2v-00A4AD-Bq for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 17:48:09 +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 1tub1v-001e2P-Kc for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 17:47:07 +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 1tub1v-001e2H-Am for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 17:47:07 +0000 Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tub1r-003bjR-2f for pgsql-hackers@postgresql.org; Tue, 18 Mar 2025 17:47:06 +0000 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-6fecfae554bso53450127b3.0 for ; Tue, 18 Mar 2025 10:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742320023; x=1742924823; 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=nNlq9Uqdd9gGOxRljfdGNA7BRaOxiOPz0G1ufP/baZo=; b=nVglevnRaTLnc6C9vX7R4nXVzCwbxZdqzXY0k0nFJoKe/2GcIHvmF1usVfO69Hnt09 PRH46ykb5efJzb73aUD1hvtc/f8kYErRBMx7/t4U3CozskhyLpi5E5pMtjkZmAFyAPuz 4+zjhgjfTMs/b2QNlHHkxftRuEB0HPpJ0b0uMSxpn6zKa9ggrQ+qnZmC9PqhDs58Zv2y A2SAOCcpN9M554edUXlEgWcgv9s3bKP8jk6wQyxORo6xjcCHS+UFtwaU6F4Pqy7UmVDL AJ8IImFm5RQRdOql2/TC/pgBKq+OowWP1Po7mnLimGjmwfIJqP6e/Cuo6PTv8eIK+6zt vzaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742320023; x=1742924823; 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=nNlq9Uqdd9gGOxRljfdGNA7BRaOxiOPz0G1ufP/baZo=; b=JNAEQn9iLXUnNpwStP3j2/eoq+yvvMvX9qUoaOg/NtR/kbrVZE/IIP8SmKhejhGaVS 0rIC+0bXuDDoOnP4wgILfaOJMXDLIKsgcorzruhDr5Dss1JOTTIGiRSJtvIGGYjPHMRH 2UkaevcXRCq4rusoHz5qgjJ0hYbOUu8Ig413dIFwKfpTKyW+/0KjsMVKT906hZKnn3is S9W0BHjKyiXJPFl7UJ6DMnwfsiEg+BqCttVN/FonR0ZXxeySBnroKVNxCbHgEX1jjDnr Ku4P1OJv0+aboS6layxj/uuDXPuMiyTRKZG3vjLRJuK5rxCyxrubzaXQ268TqXWA7fnO yqIA== X-Forwarded-Encrypted: i=1; AJvYcCVs7/dN9vLjQl0CuA2CR19T8sBzmSMnuXirvuy8eSAjw8b4qtcQeBxmdq7grF6qWLj15JQlU1HPPVcA+3SK@postgresql.org X-Gm-Message-State: AOJu0YyhgBwf4AJ4bK9tNuMOkC3DCg3+x+qWdDj8zhijQHnxk2/+QvYY yR3aKmHmdCxD0sisDquuAg8UEYoAK7cjDj37DWRjRLMm2osQnl8J X-Gm-Gg: ASbGncvx9uXgIL3eHWDec5UZ6v9wjR4u3tHxG1/LG6jrv7R91gbqSteICKR90ZqAaWq aqC2vg1rgfPSbdv5z34cl0MmqVeGPNnsgsSfGQEskqRIAi700MFkBwV3YhJZQIcYrskLZhwqdEO Nr6f4SbFAQa5oDC9p/1JJQKzgXAxl3nNnx66AoVQH+RNU18mad2CTcN9Qpi25Iz5+gWlhP+NhaG qLxztnQ6WqpoG0jPmYxTNpVG4jHF/nh4uZWLpFFqGnGAJypsBH6DxOrsZoWa/rbw9093brBHZEU 1xHRYBJ7EMlmzKIfGlVvSMYzqxiSnedI7WZgW+K2XgR5unlQ9heh0zvZlWBxG1NqR+AIFsxdB1n 8TE2nzvVQL8OUyDC51jO3bsxp6jow1cG0vgI= X-Google-Smtp-Source: AGHT+IGGnGEQxiZbI4tOzmbQzYOjq+c5kAg+YnCZxFyf0Xmo7xL98YacuLCALFetK3JAVd6VK3ixCw== X-Received: by 2002:a05:690c:b8e:b0:6fb:1e5a:fcd8 with SMTP id 00721157ae682-6ff4600e73dmr206202977b3.28.1742320023403; Tue, 18 Mar 2025 10:47:03 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6ff32d03ed3sm27178147b3.120.2025.03.18.10.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Mar 2025 10:47:03 -0700 (PDT) Date: Tue, 18 Mar 2025 12:47:01 -0500 From: Nathan Bossart To: Andres Freund Cc: Tom Lane , Robert Haas , Greg Sabino Mullane , pgsql-hackers@postgresql.org, bruce@momjian.us Subject: Re: optimize file transfer in pg_upgrade Message-ID: References: <17820.1742306681@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 Tue, Mar 18, 2025 at 01:37:02PM -0400, Andres Freund wrote: > I'd add a few more complications: > > - Create and test a relation that was rewritten, to ensure we test the > relfilenode != oid case and one that isn't rewritten. +1 > - Perhaps create a tablespace? +1, I don't think we have much, if any, coverage of pg_upgrade with non-default tablespaces. > - Do we need a new old cluster for each of the modes? That seems like wasted > time? I guess it's required for --link... It'll also be needed for --swap. We could optionally save the old cluster for a couple of modes if we really wanted to. *shrug* I'll work on the first two... -- nathan