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 1tD7JH-00G2WN-HZ for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2024 19:21:19 +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 1tD7JF-006vi5-Cq for pgsql-admin@arkaria.postgresql.org; Mon, 18 Nov 2024 19:21:17 +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 1tD7JE-006vfI-Qh for pgsql-admin@lists.postgresql.org; Mon, 18 Nov 2024 19:21:17 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tD7JA-002ZJF-Nf for pgsql-admin@lists.postgresql.org; Mon, 18 Nov 2024 19:21:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 77D6C64C20; Mon, 18 Nov 2024 19:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1731957670; bh=8urUZeDxPa1+n3yENDb+wVFiilDu6LNx3vaF9SF6VtQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DayH3WPGeWSu+dZxITM6wdiWO4L3KBItvW3WrD8jOjive+cF0szsLbv9ny1EYdoDQ pgBGekHazEoSvtXVHoecyP7/SFyCUr9UXuBsiEz/s9It9yqa3BcDzpEdQjdzh1qtS1 oFM7nJBAQ8H0bgoVIFM8K0HCm6BHs+TDeO4CW3FQOoseI5sD796oxBeVlWnUWfTPQ9 rrKOs337m/zbsD2doHqB19dWQTXAOrCs5PFXCCm2KSFd+SDS2+uOlqvA4dkopeF31i HXZfPVMGD0Zal0L7JAy1ujkH+LWT4ZFv8kqWngcggPK6JexSz8+dqVoSroZAinSqaB 3abQ6ImXaXIwA== X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDCOVDc8eZ1f; Mon, 18 Nov 2024 19:21:10 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id DCB8564C1F; Mon, 18 Nov 2024 19:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1731957670; bh=8urUZeDxPa1+n3yENDb+wVFiilDu6LNx3vaF9SF6VtQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DayH3WPGeWSu+dZxITM6wdiWO4L3KBItvW3WrD8jOjive+cF0szsLbv9ny1EYdoDQ pgBGekHazEoSvtXVHoecyP7/SFyCUr9UXuBsiEz/s9It9yqa3BcDzpEdQjdzh1qtS1 oFM7nJBAQ8H0bgoVIFM8K0HCm6BHs+TDeO4CW3FQOoseI5sD796oxBeVlWnUWfTPQ9 rrKOs337m/zbsD2doHqB19dWQTXAOrCs5PFXCCm2KSFd+SDS2+uOlqvA4dkopeF31i HXZfPVMGD0Zal0L7JAy1ujkH+LWT4ZFv8kqWngcggPK6JexSz8+dqVoSroZAinSqaB 3abQ6ImXaXIwA== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Subject: Re: Guidance Needed for PostgreSQL Upgrade from 12 to 15 From: Scott Ribe In-Reply-To: <0b8c1b80-93f5-40a7-b67b-19e58207c12c@cloud.gatewaynet.com> Date: Mon, 18 Nov 2024 12:20:59 -0700 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <9724B260-8B0E-4B03-A66A-784F792459C9@elevated-dev.com> References: <0b8c1b80-93f5-40a7-b67b-19e58207c12c@cloud.gatewaynet.com> To: Achilleas Mantzios X-Mailer: Apple Mail (2.3826.200.121) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 18, 2024, at 12:10=E2=80=AFPM, Achilleas Mantzios = wrote: >=20 >=20 > I'd like to add if someone can tolerate some seconds of downtime, with = logical replication it is possible to swap the roles of publisher / = subscriber so that one can keep the old database as a means of extra = safety. If his/her app breaks beyond repair and there is no time for = fixing, one can simply go back to the old DB with some minor adjustments = (such as sequences). In the same vein, if one's file system offers atomic snapshots: 1) shut down PG 2) run pg_upgrade with the hard links option 3) take snapshot 4) start up new PG Now, if there's a failure, you can go back to the snapshot and either = start up the old PG, or do some troubleshooting and try upgrading again.