Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication

Поиск
Список
Период
Сортировка
От Mircea Cadariu
Тема Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Дата
Msg-id 201ed97d-e88c-4c89-9cdf-84aab610e8ba@gmail.com
обсуждение исходный текст
Ответ на Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
Hi,


An update: I have two topics from the review perspective.

On the test I proposed to be added to 030_pg_recvlogical.pl, I found a 
way to write it without using sleeps (which risk flakyness in CI). I've 
attached it as a patch for your consideration. I checked the test in the 
following way: on master it fails, but with your patch it passes.

Secondly I noticed in function sendFeedback at line 166, the startpos is 
set to output_written_lsn. This seems to counter conceptually the change 
you made in the patch, however it seems to not affect correctness. Shall 
we remove this line as to avoid confusion?

Вложения

В списке pgsql-hackers по дате отправления: