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 1mspDb-0003Zd-JM for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 16:45:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mspD5-0007p7-0a for pgsql-general@arkaria.postgresql.org; Thu, 02 Dec 2021 16:45:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mspD4-0007ox-MI for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 16:45:26 +0000 Received: from mx1-es.rentec.com ([216.223.242.6]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mspD2-0006Nu-2L for pgsql-general@lists.postgresql.org; Thu, 02 Dec 2021 16:45:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rentec.com; i=@rentec.com; q=dns/txt; s=rtc081020; t=1638463524; x=1669999524; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=FQ/C2wucQkfg/aKB36vNRUSD4DS3mJTM9By8S1ZJIxQ=; b=A3+SmQpuYn//C0NveoAN8IoO8K9A06+oLWMa9ypVb99PErpQRYxlQQCy +LE4dMNvA/9HA7+kqS8h5cXk7LPG80lku5Ta0uy4poSvDZgAYGvYCmVet ZJzmGUVr+WVhx2IV5q889VkrFxPnSZq1VpOXlZu/Kp1H7C2xwxu382xQr +4tFxVPrhLRMROtPOOBlTBsEdgEZcTp2DM7lOAaNMk1qLbbOGhuHfDWSJ QvOJISW84cCeA6wP4xIQq6WVaFUGEH5u+Db4wLqZMCeMFFBjKabLBtW3A v0/3JfMKj0wkHYM3OVVolrJMy2N3U0awcdkSpZ3XAszotY/XRPMWoaqeh g==; Message-ID: <87ea93b4-3d03-35bd-c248-eb72130d16cd@rentec.com> Date: Thu, 2 Dec 2021 11:45:21 -0500 MIME-Version: 1.0 Subject: Re: pg_upgrade question Content-Language: en-US To: Adrian Klaver , pgsql-general@lists.postgresql.org References: From: Alan Stange In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Of course that would be in the manual ;-)   Thank you for pointing this out.   We've been doing upgrades the reliable old school way for so long that I wasn't aware that something better was already well documented. Thank you, Alan On 12/2/21 11:10, Adrian Klaver wrote: > 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 >> >> >