Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hD7lE-0000ye-ET for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 13:23:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hD7lC-0005qu-SA for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 13:22:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hD7lB-0005fT-SD for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 13:22:58 +0000 Received: from mail-eopbgr720083.outbound.protection.outlook.com ([40.107.72.83] helo=NAM05-CO1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hD7l8-0007KS-6u for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 13:22:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=advancedpricing.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+jSETbCpaf+R9Ba13/RCY/a/AWPY+Vl3Zb4T43A/q9c=; b=GvwX3aIYnDB74opgk2iNvYEERWSrk07FGKSLFE5CFOAhGYPE6sqv82I22u+pGQQOHfYMMjsIXvNuRRiNxCgBD8X6ReuMc6QgOrSkgMoPFf5Ca4GEBor0iWH67mapsm8n8R0cvUpRUqMdkEAVNVntBplE2u9RGYXGTTDIFiRHjmk= Received: from DM6PR11MB2939.namprd11.prod.outlook.com (20.177.217.12) by DM6PR11MB2603.namprd11.prod.outlook.com (20.176.99.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Sun, 7 Apr 2019 13:22:50 +0000 Received: from DM6PR11MB2939.namprd11.prod.outlook.com ([fe80::545:aae1:d315:f667]) by DM6PR11MB2939.namprd11.prod.outlook.com ([fe80::545:aae1:d315:f667%6]) with mapi id 15.20.1771.016; Sun, 7 Apr 2019 13:22:50 +0000 From: Lou Tseng To: "pgsql-general@lists.postgresql.org" Subject: Logical replication failed recovery Thread-Topic: Logical replication failed recovery Thread-Index: AQHU7USEkuyfS/HAZUyiH71w7TvMXw== Date: Sun, 7 Apr 2019 13:22:50 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ltseng@advancedpricing.com; x-originating-ip: [104.185.158.119] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7ccec578-46cc-4578-f03f-08d6bb5c2240 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:DM6PR11MB2603; x-ms-traffictypediagnostic: DM6PR11MB2603: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-forefront-prvs: 00003DBFE7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(39830400003)(346002)(376002)(396003)(189003)(199004)(106356001)(8676002)(81156014)(2906002)(2501003)(97736004)(105004)(81166006)(6306002)(54896002)(53936002)(68736007)(7696005)(5660300002)(6506007)(4744005)(71190400001)(71200400001)(256004)(316002)(3480700005)(9686003)(52536014)(236005)(2351001)(66066001)(6116002)(33656002)(86362001)(8936002)(486006)(476003)(3846002)(99286004)(55016002)(861006)(102836004)(19627405001)(6436002)(733005)(6916009)(7736002)(25786009)(53376002)(74316002)(105586002)(14454004)(478600001)(186003)(26005)(606006)(5640700003)(15398625002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR11MB2603;H:DM6PR11MB2939.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: advancedpricing.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fsiZV2BG8t80awCgYaq4fb+Hhzqi6EbkaAWj8RhxXMcna4uAZhxJ3qmFYQVnOAtMTEreyiqBwgyigI2BMgpfPv4fjSGr4as830Gc9UhrE/he42OKcUdiyqFBKuUskov9jy7MxU5t9e/HqMkZsIBZk71RySvTr/VCU9ZLBEhpLIybJ1bHODBXW2PeCm2FzMgSUY36oTV+NQ2Z+39l6w6k5i43V1JwgtVBjIsKTLg6LWUfFCedD61OvLRCO4zZI6xmMAafUMMinocpK2jkeMRHEIkjt/zHPf2KxWQ2KrR4DoWipECrORSU8So9cftLhXBBaK9BedoWN1ncEGYlCx9n7zyFleDRBqmhgK1CEIvtWR8b+5/kyI/Pr3/eGWkqol/ckf4XS2xTUFCEG+KIwGx4sDQ56RNAA6FP6AreiD8XUp4= Content-Type: multipart/alternative; boundary="_000_DM6PR11MB2939FF65103200D9F8BA88BCC4530DM6PR11MB2939namp_" MIME-Version: 1.0 X-OriginatorOrg: advancedpricing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ccec578-46cc-4578-f03f-08d6bb5c2240 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2019 13:22:50.3428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83b585d6-8fb8-4cf6-b268-242d58e5e094 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2603 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_DM6PR11MB2939FF65103200D9F8BA88BCC4530DM6PR11MB2939namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi folks, Is there a good tutorial to recover from logical replication out of sync? = We ran into this error stating WAL has been removed and now replica is out = of sync. Also, is there a way to increase the number of WAL kept on the ma= ster? Thanks! 2019-04-07 12:28:37.180 UTC [22292] ERROR: could not receive data from WAL= stream: ERROR: requested WAL segment 0000000100005208000000EB has already= been removed 2019-04-07 12:28:37.182 UTC [114186] LOG: worker process: logical replicat= ion worker for subscription 8907992 (PID 22292) exited with exit code 1 Lou Tseng ltseng@advancedpricing.com [http://advancedpricing.com/wp-content/uploads/logo_AMPS_email.png] Advanced Medical Pricing Solutions 35 Technology Parkway South, Suite. 100 Peachtree Corners, GA 30092 --_000_DM6PR11MB2939FF65103200D9F8BA88BCC4530DM6PR11MB2939namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi folks,

Is there a good tutorial to recover from logical replication out of sync?&n= bsp; We ran into this error stating WAL has been removed and now replica is= out of sync.  Also, is there a way to increase the number of WAL kept= on the master?

Thanks!

2019-04-07 12:28:37.180 UTC [22292] ERROR:  could not receive data from WAL stream: ERROR:  re= quested WAL segment 0000000100005208000000EB has already been removed

2019-04-07 12:28:37.182 UTC [114186] LOG:  worker process: logical replication worker for subscription 8907992 = (PID 22292) exited with exit code 1



--_000_DM6PR11MB2939FF65103200D9F8BA88BCC4530DM6PR11MB2939namp_--