So I think that the reported issue doesn't happen in failover cases and we can focus on failover cases.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных