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 1rZzy1-007afw-AR for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Feb 2024 21:05:25 +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 1rZzy0-002PQS-0Y for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Feb 2024 21:05:24 +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 1rZzxz-002PQK-Ms for pgsql-hackers@lists.postgresql.org; Tue, 13 Feb 2024 21:05:23 +0000 Received: from charmander.telsasoft.com ([50.244.222.1] helo=pryzbyj2023.telsasoft) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZzxs-006bDd-Gx for pgsql-hackers@lists.postgresql.org; Tue, 13 Feb 2024 21:05:22 +0000 Received: by pryzbyj2023.telsasoft (Postfix, from userid 1000) id E07CE13252; Tue, 13 Feb 2024 15:05:14 -0600 (CST) Date: Tue, 13 Feb 2024 15:05:14 -0600 From: Justin Pryzby To: Amit Kapila Cc: vignesh C , Masahiko Sawada , Michael Paquier , Peter Smith , "Hayato Kuroda (Fujitsu)" , Julien Rouhaud , pgsql-hackers@lists.postgresql.org Subject: Re: pg_upgrade and logical replication 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 Tue, Jan 02, 2024 at 03:58:25PM +0530, Amit Kapila wrote: > Pushed. pg_upgrade/t/004_subscription.pl says |my $mode = $ENV{PG_TEST_PG_UPGRADE_MODE} || '--copy'; ..but I think maybe it should not. When you try to use --link, it fails: https://cirrus-ci.com/task/4669494061170688 |Adding ".old" suffix to old global/pg_control ok | |If you want to start the old cluster, you will need to remove |the ".old" suffix from /tmp/cirrus-ci-build/build/testrun/pg_upgrade/004_subscription/data/t_004_subscription_old_sub_data/pgdata/global/pg_control.old. |Because "link" mode was used, the old cluster cannot be safely |started once the new cluster has been started. |... | |postgres: could not find the database system |Expected to find it in the directory "/tmp/cirrus-ci-build/build/testrun/pg_upgrade/004_subscription/data/t_004_subscription_old_sub_data/pgdata", |but could not open file "/tmp/cirrus-ci-build/build/testrun/pg_upgrade/004_subscription/data/t_004_subscription_old_sub_data/pgdata/global/pg_control": No such file or directory |# No postmaster PID for node "old_sub" |[19:36:01.396](0.250s) Bail out! pg_ctl start failed You could rename pg_control.old to avoid that immediate error, but that doesn't address the essential issue that "the old cluster cannot be safely started once the new cluster has been started." -- Justin