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 1tFF76-00C5mk-St for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 16:05:32 +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 1tFF75-008DOl-Hh for pgsql-general@arkaria.postgresql.org; Sun, 24 Nov 2024 16:05:31 +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 1tFF75-008DOd-3A for pgsql-general@lists.postgresql.org; Sun, 24 Nov 2024 16:05:31 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tFF72-003cSz-PQ for pgsql-general@postgresql.org; Sun, 24 Nov 2024 16:05:30 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-212348d391cso35749165ad.2 for ; Sun, 24 Nov 2024 08:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732464326; x=1733069126; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=n4zKCyYoxVkszazUkrjsz7LMjbyTeF3DV0BsQwtBXuI=; b=noWP2ldfsMCmrZkZhobkcNM0nos2VxgUhWuRR0dYLVr7y8vRh4dMrW14JaNz4Pq6gA oQXF9tfZKyCoBaNCSPuAx+wHafD9nonYrH15Qt7P1bcSmgMo7lOVnCbEPSb1o7CCtZZf yysGOncAqmzMkHYcF3AhHy3U0Ew7FcmGjSyy39gjt5va0PIdHX0ebQGN0jAEQ2mrYrpu vGlNCCgfq9i2xXcAs4gxgt7RnkkVOa/Fy2csfa7HRfaUa0EQ41w2GBLehwbV/8MXVUgl 1KsZ1t5UHPNo2z+cWe514irCUF+qOKBBBqq2eWi69WCX4HILvU8EaAyydvQ0o/ttrkk8 CcwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732464326; x=1733069126; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=n4zKCyYoxVkszazUkrjsz7LMjbyTeF3DV0BsQwtBXuI=; b=O4fhJYZI9gyF9IUu1R72pmdY2NvDtjojcnJuxWlTmvQBd27UvyEdhWIzvqe8BRYtY7 j+Cdeqd4aU3YJW2wajzHnYUG2LEu38WslB8T9wCGynhCLAR4wSnnfHWO9hcs5obYXRMH uhFE00t8mBoI81dNFM9jhtLFVaR7jIOIdN0B3eRWFPIENF1q8nSKbdV7dQXZYBctxXWR BZJ82Gu4k0Ou0KQ1wHmTH5S/w2R+2n/HUPNsyf45fDKMOgzqY9SJez8KI5Sp1Zt4qlG7 7+umgorNtt5Sws+dVPRdjV1p657XtRFRo7vOU0Qgqj8ZDzLOnFGAIGywlXrhx79uxXy1 PYkg== X-Gm-Message-State: AOJu0YzUAKgMyhjKEbX2FJzLPfiFZla9NZ+v2EBSu0UHrMs0aG/wd9ya KM+JpZJeg/63kPpbWKSQIPYA66OUy+aAEY9RgqBME2bPIV6rUrWzzl5kp6Xp2uUp7jFGn6BwEbI fIAPXcwsYKEl/N7CqOXG+QlmmZi5vo+JV X-Gm-Gg: ASbGncuTBimdWJrRcWRhpB7AZUXyYfH47fOQ0Y1yrRAaPDTARiC0CI4zZ0pEb08mkRE 8Rl6mzgmQuqSaEVZ/ikNlMf4BeurPJw== X-Google-Smtp-Source: AGHT+IFxAZzhFCpTgEQKAQImx8qjJF+x2lHiiq+QerAPQKA0lOejLl9+K4FRY18SNsN64zmx0rfm5uNCDLaw25Qb8qk= X-Received: by 2002:a17:902:ea10:b0:20c:d469:ba95 with SMTP id d9443c01a7336-2129f67ae5dmr115659265ad.16.1732464326056; Sun, 24 Nov 2024 08:05:26 -0800 (PST) MIME-Version: 1.0 From: Subhash Udata Date: Sun, 24 Nov 2024 21:35:15 +0530 Message-ID: Subject: Questions on Upgrading PostgreSQL from 15.0 to 15.9 and Setting Up Streaming Replication To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000bda3540627aac875" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bda3540627aac875 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=933 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 fi= les that have changed on both servers? Your guidance and recommendations on these questions will be greatly appreciated. Thank you for your time and support! Best regards, Subhash --000000000000bda3540627aac875 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear PostgreSQL Community,

I have a production da= tabase setup with a primary server and a standby server. The database is cu= rrently 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. Upgra= de and Replication Compatibility:

    • My plan is to perform= a failover, promote the standby server (currently 15.0) to primary, and th= en 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 st= reaming replication between these two versions (15.0 as pr= imary and 15.9 as standby)?
  2. E= fficient Replication Setup:

    • The production database is = around 1TB in size, and creating replication using p= g_basebackup is taking more than 2=E2=80=933 hours to complete.
    • =
    • Is there an alternative method to set up replication without taking a f= ull backup of the entire cluster but instead using only the WAL files that = have changed on both servers?

Your guidance and recom= mendations on these questions will be greatly appreciated.

Thank you = for your time and support!

Best regards,

Subhash

--000000000000bda3540627aac875--