Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msof5-0000Z2-Ju for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 16:10:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msof4-0007rn-DZ for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 16:10:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msof2-0007qe-J2 for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 16:10:18 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msoey-00060Q-Dl for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 16:10:16 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 87F273201E56; Thu, 2 Dec 2021 11:10:09 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 Dec 2021 11:10:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=E fiP8/Ng8TUrx+ei+ah/rXglzW5gaWy7iwO2cEzL3sw=; b=wui3i2HdB+SeyBWr7 jx4h7t204pSBE7++JRAfXM+FjO3OC9ONT5lo6GJJb++sfiRqtsz6BCf/eH5tuig1 eYUPBHQuNqIoTx0OxwwIn5n+GM+YCfzHdd6+S9EaPVVL7wbvqjtZk1zjBAkdfM/N OtEjEdEd7t8x6zVtktxqXNX/HTM+hR4lMrvvPeAGNSb3Adi9m+Y/b+Euy0oXMXEq DwiD0T6XbVNfLo9KBxkYXwQVwYkonlpS5RpK0t0SlyMgdB9JQZ+ohpSvk6pqzZQB yLXz39Lb+iFR34TZHHYcTsCyzAuFmjpGuupMLTjABZ2OMWGggsNWCMVfIugW00wd VUxtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=EfiP8/Ng8TUrx+ei+ah/rXglzW5gaWy7iwO2cEzL3 sw=; b=Iz3EGxk354lilf7ZgGFInu6kdZ8hMX0bObeAcIsXmTTh1dUEIA4TUn3iD U6pcgf4+WVJ60ji/Y7qwT3V3lZ1m6RWXie+H6SdSoQWbYsvENWxpgAjPVH966Phj 6LNcA824hV5bsl5CwaIfg46u93DurE2aEMGlO1/lr8MVbt3nTzuxoaTDg6ibQb4t se8ak4q5jVjCJ5LiOVYLHsakvPzxW23a3MakE5R6c+We1s5p88bJVsb/7dnrN9Fz oxGz+cvHQvdEsiJgFcPpjoZz39LSuntGYjsUkV6yqDomttbJkEtn4hGZ7ZaJrB50 TrFQPBdswhihR4Vspo0QJByocBicA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieehgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepleekgeejhfekteehfeduveetheeivdduheekudelteef vdffueehtddvgedtfeefnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Dec 2021 11:10:08 -0500 (EST) Message-ID: Date: Thu, 2 Dec 2021 08:10:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: pg_upgrade question Content-Language: en-US To: Alan Stange , pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/2/21 08:05, Alan Stange wrote: > Hello all, > > We're running a 13.x installation and looking to upgrade to 14.1.  This > is all on Linux servers.   We have a main instance running with a number > of hot standby replicas configured.   In the past, we have done a > dump/restore on a slow evening and then rsynced all the bits around so > that the main server and all replicas were identical at the start.   The > database has gotten larger now (~1TB) so that is a less desirable option. > > So I am thinking to do a pg_upgrade --link on each of the main and the > hot standby replicas, and then restarting all the processes.   I'm sure > this will work fine on the main server, but I have not seen any mention > of this working in the expected way on the hot standby replicas.   Can > someone confirm that the steps I described here will work in the way I > am optimistically expecting it will? Have you looked at steps 9 & 11 here?: https://www.postgresql.org/docs/current/pgupgrade.html > > I should mention that we are running on ZFS, and will take a snapshot > prior to the upgrade, so that if something goes sideways with our use of > --link  we can revert back instantly. > > Thank you, > > Alan > > -- Adrian Klaver adrian.klaver@aklaver.com