On Tue, Jun 9, 2020 at 1:56 PM Fujii Masao <masao.fu...@oss.nttdata.com> wrote: > > Hi, > > I encountered the following assertion failure when I changed > logical_decoding_work_mem to lower value while logical replication > is running. This happend in the master branch. > > TRAP: FailedAssertion("rb->size < logical_decoding_work_mem * 1024L", File: > "reorderbuffer.c", Line: 2403) .. > > > ReorderBufferCheckMemoryLimit() explains that it relies on > the following (commented) assumption. But this seems incorrect > when logical_decoding_work_mem is decreased. >
Yeah, that could be a problem. > I wonder if we may > need to keep evicting the transactions until we don't exceed > memory limit. > Yes, that should be the right fix here. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com