Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLkhz-0001XI-VA for pgsql-general@arkaria.postgresql.org; Mon, 15 Mar 2021 10:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lLkhy-0005x5-Ni for pgsql-general@arkaria.postgresql.org; Mon, 15 Mar 2021 10:44:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLk2m-0004Pa-FE for pgsql-general@lists.postgresql.org; Mon, 15 Mar 2021 10:01:48 +0000 Received: from [115.114.9.131] (helo=emailpun.xoriant.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1lLk2j-0004uu-P3 for pgsql-general@lists.postgresql.org; Mon, 15 Mar 2021 10:01:47 +0000 Received: from XORPUN-MBX02.India.XoriantCorp.com (10.20.0.12) by XORPUN-MBX02.India.XoriantCorp.com (10.20.0.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Mar 2021 15:30:06 +0530 Received: from XORPUN-MBX02.India.XoriantCorp.com ([fe80::80ab:1334:ad7e:3212]) by XORPUN-MBX02.India.XoriantCorp.com ([fe80::80ab:1334:ad7e:3212%13]) with mapi id 15.00.1497.012; Mon, 15 Mar 2021 15:30:06 +0530 From: Swati yadav To: "pgsql-general@lists.postgresql.org" Subject: Need help on understanding of wal_keep-segments and max_wal_size dependency. Thread-Topic: Need help on understanding of wal_keep-segments and max_wal_size dependency. Thread-Index: AQHXGYHeoTkr9j//zUuVJF1ZZyk6QQ== Date: Mon, 15 Mar 2021 10:00:06 +0000 Message-ID: <1615802487270.78115@Xoriant.Com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [165.225.106.55] Content-Type: multipart/alternative; boundary="_000_161580248727078115XoriantCom_" MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 115.114.9.131 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_161580248727078115XoriantCom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Team We are using streaming replication without feature archiving and replicati= on slots. Could you please help us in understanding how replication will works when I= set max_wal_size to 1GB, wal_keep_segments set to 300?. ?In this scenario, replication is getting failed. Could you please brief u= s the causes of failure and how can we fix this issue, apart from using the= feature archiving? and replication slots. Thanks & Regards Swati Yadav | Xoriant Solutions Pvt. Ltd. 5th floor, Amar Paradigm, Baner Road, Baner, Near D'mart, Pune - 411 045 http://www.xoriant.com --_000_161580248727078115XoriantCom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello Team


We are using streaming replication without  feature archiving and replication slots.


Could you please help us in understanding how replication will works&nbs= p;when I set max_wal_size to 1GB, wal_keep_segments  set to 300​.


​= In this scenario, replication is getting failed.  Coul= d you please brief us the causes of failure and how can we fix this issue, apart from&nbs= p;using the feature archiving​ and replication slots.






Thanks & Regards
Swati Yadav | Xoriant Solutions Pvt. Ltd.  
5th floor, Amar Paradigm, Baner Road, Baner,

Near D’mart, Pune - 411 045
http://www.xoriant.com

--_000_161580248727078115XoriantCom_--