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 1sbYLt-00HP7q-Ks for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2024 04:32:45 +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 1sbYLq-004QBG-0T for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2024 04:32:42 +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 1sbYLp-004QAF-LN for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2024 04:32:41 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbYLm-003U8F-UB for pgsql-general@lists.postgresql.org; Wed, 07 Aug 2024 04:32:40 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2f0271b0ae9so13520561fa.1 for ; Tue, 06 Aug 2024 21:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723005157; x=1723609957; darn=lists.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=Fr3BRU1mDoEVmAQvjrOkTdIgTeh1f3TYboMGNAuo3us=; b=aUu7vb8KWSMcbuOYc/Wl0qEX4xFoR25QTwHxGUCD6Svy9XSevH1+UV7QmJKPYcGf5T gk5BlZ95/VAJMbaJlMH+0myHpc4A8QG+yzJgKnfUWx4hcpQ6EEGlQGP1ir073TRqdge6 j5AYmpPSMzobvEUqdEhaQol/DvjrCeIICbc1baOgNN0qOhMWRIjoa9pYU6DQr8kmik32 ROq2jkWzdz4lpY6yLZ4fzEffHpp4jtlrJbciEK8hX64n4+Y7jjZdl7vFpNkU+TJs4Fmu TiArnHy98L3m47TWNIdu3u/8DPRctND4/mzuleQG4pWdhFZrTew+vcFK1p+pdSQe7I3t hV5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723005157; x=1723609957; 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=Fr3BRU1mDoEVmAQvjrOkTdIgTeh1f3TYboMGNAuo3us=; b=LicHBDapBrJIUzeDMwr0Oix7sdgST2KN75+KeArIjFmD2KLfmy9SB+2uO5UQbuuUao Ije/NXHTvoaiR7buiBh6d5F/gwwilVyKDIQk46S+m74CJZQMbqFeMpVO4pgXx+mwLXl/ cMZhBCwCrwQ52z753L6qOlD+jwkgonip6Z5EOU90RVEsnXZ9ZVpH2dgHgf0bCOUZLZom qYFnQULkr47fF0YyalSoq0dVy6XuLIu8/SBFV5KiFtEoWEMcnlPdMIrVoEg3ucmtl4eN WpluL1THsZb/XqLedxGfvTLCJzyENi4f59OWeaX1/6dqQyoK3d2CnegNQJCDdyFeKm+J UpTA== X-Gm-Message-State: AOJu0Yz8yRE5w7+7GO4ZFsv0HlvhqBi6dqeNheqvXFrEyN2IW2izAhin 7skA064kgL2OlSQ/qTfU+1x/Ur5jzUom73wIDRa2CPHJqpJ1riNm36w+Yoi8VuXKPtBOQy6eCQD I91lWPN71+OXa1oHCOKNLbQga8CQ= X-Google-Smtp-Source: AGHT+IHpoLlqB77cNk1t2EpHaJNUFCTqqfCZZg81ktgsClQdxlR2r8+0pzu/Q19tGQx1sekG5wxNz/h3QexcdM21rQw= X-Received: by 2002:a05:6512:1104:b0:52c:dfa2:5ac1 with SMTP id 2adb3069b0e04-530bb37a069mr11090421e87.24.1723005156834; Tue, 06 Aug 2024 21:32:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Ikram Date: Wed, 7 Aug 2024 09:32:19 +0500 Message-ID: Subject: Re: Streaming replication issue post upgrade from version 11 to 14 on windows 2016 Server To: Vamsi Chava Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000051c671061f1066e8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000051c671061f1066e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vamsi, We have been doing these steps to setup streaming replication --Primay-Server CREATE ROLE repl REPLICATION LOGIN PASSWORD 'your_password'; postgresql.conf listen_addresses =3D '*' wal_level =3D replica archive_mode =3D on archive_command =3D 'copy %p \\path_to_archive\\%f' max_wal_senders =3D 3 wal_keep_size =3D 1024 --pg_hba.conf host replication repl standby_server_ip/32 auth_method Creating standby PGPASSWORD=3Drepl pg_basebackup -F p -C -S pslot1 -h localhost -p 5333 -D path_to_standby_data_directory -U repl -P -v -R -X stream --standby-postgresql.conf primary_conninfo =3D 'host=3Dprimary_server_ip port=3D5432 user=3Drepl password=3Dyour_password' restore_command =3D 'copy \\path_to_archive\\%f %p' # if you are using archive logs Hope I did not forget any step. Regards, Muhammad Ikram On Wed, Aug 7, 2024 at 6:11=E2=80=AFAM Vamsi Chava wrote: > Hi Team, > > we have upgraded postgresql version 11 to 14 on windows server 2016, post > upgrade we configured streaming replication. the data is not getting > replicated. but compared to version 11, 14 is very different in > configuring replication. Tried from documentation from postgres site. no > luck, Any help appreciated. Tried many other sites for Windows side > replication configuration notes. No luck > > > Thankyou > vamshi.chava > --=20 Muhammad Ikram --00000000000051c671061f1066e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Vamsi,

We have been doing these step= s to setup streaming replication=C2=A0


--Prima= y-Server

CREATE ROLE repl REPLICATION LOGIN PASSWORD 'your_passw= ord';

postgresql.conf

listen_addresses =3D '*&= #39;
wal_level =3D replica
archive_mode =3D on
archive_command =3D= 'copy %p \\path_to_archive\\%f'
max_wal_senders =3D 3
wal_ke= ep_size =3D 1024

--pg_hba.conf

host replication repl s= tandby_server_ip/32 auth_method


Creating standby

PGPASSWO= RD=3Drepl pg_basebackup -F p -C -S pslot1 -h localhost -p 5333 -D path_to_s= tandby_data_directory =C2=A0 -U repl -P -v -R -X stream


--standb= y-postgresql.conf

primary_conninfo =3D 'host=3Dprimary_server_ip= port=3D5432 user=3Drepl password=3Dyour_password'
restore_command = =3D 'copy \\path_to_archive\\%f %p' =C2=A0# if you are using archiv= e logs


Hope I did not forget any step.

Regards,
Muhammad Ikram


On Wed, Aug 7, 2024 at 6:11=E2=80=AFAM Vamsi Chava <chavavamsichava@gmail.com> wrote:
Hi Team,

we have upgraded postgresql version 1= 1 to 14 on windows server 2016, post upgrade we configured streaming replic= ation. the data is not getting replicated. but compared to version 11, 14 i= s very different in configuring=C2=A0replication. Tried from documentation = from postgres site. no luck, Any help appreciated. Tried many other sites f= or Windows side replication configuration=C2=A0notes. No luck

Thankyou
vamshi.chava


--
Muhammad Ikram

--00000000000051c671061f1066e8--