转主备专题

opengauss pending启动转主备代码分析

opengauss以pending启动时,也会执行StartupXLOG,并且replay wal,ApplyRedoRecord()会被调用。 当对pending状态的gaussdb,执行gs_ctl notify -M primary 时,会启动walsender等线程。 gs_ctl与gaussdb之间的交互不是通过socket连接,而是通过kill发信号,postmaster注册SIG