Create replication slot on fts promote message on mirror.
To "incrementally" recover old primary as a mirror at a later time via
pg_rewind, all xlog must be preserved from point of divergence. Hence,
replication slot must be created at promote time. So, this commit adds
logic on FTS promote message to create physical replication slot and
also sets the restart_lsn of the slot to start preserving the xlog right
away.
Co-authored-by: NAshwin Agrawal <aagrawal@pivotal.io>
Showing
想要评论请 注册 或 登录