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 1tFG1z-00C9pQ-PB for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 17:04: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 1tFG1y-008jPT-2e for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 17:04:18 +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 1tFG1x-008jPL-Lh for pgsql-general@lists.postgresql.org; Sun, 24 Nov 2024 17:04:17 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tFG1r-003crb-LG for pgsql-general@postgresql.org; Sun, 24 Nov 2024 17:04:17 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-212348d391cso35970495ad.2 for ; Sun, 24 Nov 2024 09:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732467849; x=1733072649; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RA3Bt1367dwpH32cBWxLcOqNxE6g+pBHrCpuBq4iW3g=; b=ll5rcjzLLsiX9IowTLi84DyxSHIwMCRXPJ4O1yN+ZjWzybArNtzp7j4sFOxDuPi0ES Kko2ar7A2FAZPPl+rgmqvj4iWc1b0CJkpsgv3RxIvt4cmmthMbbsYHj8w24DtRxHpDuw K9NU2jN67pARBesD1qPVkEb/cBHdpKvnNLxqWca0zlai+Z0oQl3StvWKC+40/G4KSlVD uk8i3Ix+rzf8+Tadx0McCJNI6wlZ/1zVkvvioKtuiO61wqYRhVkZqmVimzj0Sl+peSHw e15VMTlvJb5Yb49Fjfi/hkb3hZ5MsVGs9l9vx27CCSUhZuPW8aZ/4jzBPJCdx9DKalF1 45Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732467849; x=1733072649; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RA3Bt1367dwpH32cBWxLcOqNxE6g+pBHrCpuBq4iW3g=; b=VE9Ug3D5bs/9am1os8q8hye9cFmCJtG45BjWx1zWfzwVPWEgFkUQaAyrxpHY7MCwox rF/V6ptFv2iOmaCiQ8FB9hEYC6XhEsTGm5GRhgZ6EPO1RU/AhpUoteRyRs+m/sArmwXh zrNo7tfE0sbZmuNRr+KYgCVp/2Q1mmuf9q1lN6Z5C46WR1zQKygKzuV3N11pLEpKEPBk YPsheli8ezHKb+RELBU/WKxYNrjECePA8Us8Lol7MBrFPZWa/bjLgt+yi+hI3qSR3Ozy 6g0GbkSlLHRK3/Yt87YHEysrBC2xSpIpe9DqhMu0xPqdbW69hpMrcgZkrBdU1r7KUHAB WcXQ== X-Gm-Message-State: AOJu0YzD0jRFP1g4pTq1L4F80SoiU8b/9X4qP9ty3YeKQ6ZgsDtrNMT6 6LxlWdRH9LaLLSG7zzfEh9uXAOp2g9Hn/KV17YcDfLaBDM29PWQOY7jWbLt3qqZeNSz+FZuMpgQ VWqndaYknW1cs2FR4zZXDTz7KamStsb96 X-Gm-Gg: ASbGncut+pHIne1BRgJ+5r+6ocMF8+ktOfcX5ZQsQuuGdsReUWJ6QbRgYcRpXXbzmAJ grSQs+8XODlU/Iicma7CqVypy8jKoIA== X-Google-Smtp-Source: AGHT+IEfsWmy5kOrsdd7gbUd/7d04qH2qzCyqsJrZ2iS9+Of2GjkSWCiJ+FCSBCH5M/WPUzseSqpFCc+I/DJAt4Kg/0= X-Received: by 2002:a17:902:fc8e:b0:20c:5404:ed69 with SMTP id d9443c01a7336-2129f6b22e1mr170727745ad.31.1732467849321; Sun, 24 Nov 2024 09:04:09 -0800 (PST) MIME-Version: 1.0 References: <6c498f0e-64f9-449a-9b90-5cd72d00e2ef@aklaver.com> <2a7d96ac-83a7-4ddc-a3ce-9c637f2c1c76@aklaver.com> In-Reply-To: From: Subhash Udata Date: Sun, 24 Nov 2024 22:33:58 +0530 Message-ID: Subject: Re: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication To: Ron Johnson Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000be662a0627ab9a7b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000be662a0627ab9a7b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your valuable suggestion! I have a question regarding the process: When we shut down the standby, upgrade it, and then start it back up, will the replication automatically resume from the primary to the standby? Looking forward to your clarification. 2) What do you mean by resource-intensive? If it means network bandwidth, then read the pg_basebackup man page. No, it=E2=80=99s not about pg_basebackup consuming resources. What I mean= t is that in the event of a failover, if we need to bring the standby back online, the process of running pg_basebackup takes a significant amount of time. However, if using a cron job for this purpose is a viable option, then that would be acceptable. On Sun, 24 Nov 2024 at 22:27, Ron Johnson wrote: > On Sun, Nov 24, 2024 at 11:52=E2=80=AFAM Subhash Udata > wrote: > >> I understand your point and appreciate the clarification. >> >> I have reviewed the references and now have a better understanding of th= e >> minor upgrade process. >> >> However, my concern lies in the fact that we are working with production >> servers, where downtime is not acceptable. >> >> Additionally, if a failover occurs due to a network issue or any other >> disaster, setting up replication again requires running the pg_basebacku= p >> command. For large databases, this process becomes a significant challen= ge, >> as running pg_basebackup for the entire cluster can be time-consuming >> and resource-intensive. >> > > A comment and a question: > 1) pg_basebackup runs just fine from cron. Thus, "time-consuming" (which > you described as 2-3 hours) isn't that critical. > 2) What do you mean by resource-intensive? If it means network bandwidth= , > then read the pg_basebackup man page. > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! > --000000000000be662a0627ab9a7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thank you for your valuable suggestion!

I have a = question regarding the process:
When we shut down the standby, upgrade i= t, and then start it back up, will the replication automatically resume fro= m the primary to the standby?

Looking forward to your clarification.=

2) What do you mean by resource-intensive?=C2=A0 If it means networ= k bandwidth, then read the pg_basebackup man page.
=C2=A0 No, it=E2=80= =99s not about pg_basebackup consuming resources. What I meant= is that in the event of a failover, if we need to bring the standby back o= nline, the process of running pg_basebackup takes a significan= t amount of time. However, if using a cron job for this purpose is a viable= option, then that would be acceptable.=C2=A0=C2=A0


On Sun, 2= 4 Nov 2024 at 22:27, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
On Sun, Nov 2= 4, 2024 at 11:52=E2=80=AFAM Subhash Udata <subhashudata@gmail.com> wrote:
<= div class=3D"gmail_quote">

I understand your point and appreciat= e the clarification.

I have reviewed the references and now have a be= tter understanding of the minor upgrade process.

However, my concern = lies in the fact that we are working with production servers, where downtim= e is not acceptable.

Additionally, if a failover occurs due to a netw= ork issue or any other disaster, setting up replication again requires runn= ing the pg_basebackup command. For large databases, this proce= ss becomes a significant challenge, as running pg_basebackup f= or the entire cluster can be time-consuming and resource-intensive.


A comment and a question:
1) pg_basebackup runs just fine from cron.=C2=A0 Thus, &= quot;time-consuming" (which you described as 2-3 hours) isn't that= critical.
2) What do you mean by resource-intensive?=C2=A0 If it= means network bandwidth, then read the pg_basebackup man page.
<= br>
--
Death to <Redacted>, a= nd butter sauce.
Don't boil me, I'm still alive.
&= lt;Redacted> lobster!
--000000000000be662a0627ab9a7b--