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 1tFFg1-00C843-Ds for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 16:41:37 +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 1tFFg0-008PvW-2A for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 16:41:36 +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 1tFFfz-008PvL-NF for pgsql-general@lists.postgresql.org; Sun, 24 Nov 2024 16:41:35 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFFfv-003cgx-W6 for pgsql-general@postgresql.org; Sun, 24 Nov 2024 16:41:34 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 42C4C11400DF; Sun, 24 Nov 2024 11:41:30 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Sun, 24 Nov 2024 11:41:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1732466490; x=1732552890; bh=MmvSE6bRsn4AuuOXXeodxFoJNg8odk9X9g3TTF51vRg=; b= X9CTXgmS9vmNSOMyTZRfUfx2fhjawDkOsyrJaCjtNyj6Tv/fznGeMK5N1ESPgk1C to4ftwyc1rarO4XYQ1wGtHlBUxKQMUfYimZqamuANywwgpsgLJWUwRQzfVUyoa6P 30cPwYZoIj7eRl9vwY9h58cik4qiTAn8PCkKevnItqSEJBm5hKg1uEISXhINoJaS NbJJAUv0nJI/9zoHPTR28Kd8eHfmgNRa/LRjghaRigR8v29TW3/88WWqBbvtH5QI Yh31mKrRmmmCooAUl6EIIiuz+Vcz8J7eQWoE2wYWOO5K6DySwNWa50oLF10/fBFI J389CgMmH2UOD4YLOQoAZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732466490; x= 1732552890; bh=MmvSE6bRsn4AuuOXXeodxFoJNg8odk9X9g3TTF51vRg=; b=X G9oyeLnhl1FWOp1OJmUZevW7tAjZcM5bPi6HZg2v1AiZuubt/VCsxYBkIKd24GPs 0AXWmtFQ+BecrOX6H04UttXH6eDAtNQctvHiBgCaulbogWST9XcXZoB6Ta++JlOe Y1RJO7sEofKj2HhzxhR+M2b5dbSISkNUGEWl0daigreTw20VqLKXvIvKUy/R2XkR xa37Q0clmIBxWgIEEnideETHv5Fde+y03a4ldl0pRnChmnJXBu8WcrqT3RqOwOOz yxEhPz4fHvX2+QXgc4KtrpHNm6DebI1/NBs7G2Y5gXLY9bmeqZ/KRbn1CaURslnU EbsLkEs3mNjFWnW20PLng== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeefgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefgudefkefhveefleevieeu veehvdduudekuddvvdelhfeuueeijedtuedvvedvueenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshhusghhrghs hhhuuggrthgrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrh grlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Nov 2024 11:41:29 -0500 (EST) Message-ID: <2a7d96ac-83a7-4ddc-a3ce-9c637f2c1c76@aklaver.com> Date: Sun, 24 Nov 2024 08:41:29 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication To: Subhash Udata Cc: pgsql-general@postgresql.org References: <6c498f0e-64f9-449a-9b90-5cd72d00e2ef@aklaver.com> Content-Language: en-US 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 11/24/24 08:36, Subhash Udata wrote: > The reason to upgrade from 15.0 to 15.9 is this > https://www.postgresql.org/support/security/CVE-2024-10979/ > > > Here it is mentioned that this vulnerability is fixed in 15.9 > So our organization wants an upgrade from 15.0 to 15.9 Sorry, I was not clear enough. When I said 'Why?' it was not referring to reason you wanted to upgrade, it was why go through the whole pg_basebackup process. Read this link: https://www.postgresql.org/support/versioning/ for why that is not necessary. > > On Sun, 24 Nov 2024 at 21:48, Adrian Klaver > wrote: > > On 11/24/24 08:05, Subhash Udata wrote: > > Dear PostgreSQL Community, > > > > I have a production database setup with a primary server and a > standby > > server. The database is currently running on *PostgreSQL 15.0*, > and I > > plan to upgrade both servers to *15.9*. > > > > I have the following questions regarding the upgrade and replication > > process: > > > >  1. > > > >     *Upgrade and Replication Compatibility*: > > > >       * My plan is to perform a failover, promote the standby server > >         (currently 15.0) to primary, and then upgrade the old primary > >         server to version 15.9. > >       * After upgrading the old primary server to version 15.9, I > want > >         to configure it as a standby server and set up streaming > >         replication with the new primary server, which will still be > >         running version 15.0. > >       * Is it possible to establish streaming replication between > these > >         two versions (*15.0* as primary and *15.9* as standby)? > >  2. > > > >     *Efficient Replication Setup*: > > > >       * The production database is around *1TB in size*, and creating > >         replication using |pg_basebackup| is taking more than 2–3 > hours > >         to complete. > >       * Is there an alternative method to set up replication without > >         taking a full backup of the entire cluster but instead using > >         only the WAL files that have changed on both servers? > > Why? > > 15.0 --> 15.9(actually you want the latest release 15.10) is a minor > upgrade it involves shutting down the servers installing the new > version > binaries on each and restarting them. > > You should read: > > https://www.postgresql.org/support/versioning/ > > > It would be a good idea to go through the Release Notes here: > > https://www.postgresql.org/docs/15/release.html > > > To see what changed. > > > > > Your guidance and recommendations on these questions will be greatly > > appreciated. > > > > Thank you for your time and support! > > > > Best regards, > > > > Subhash > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com