patroni.postgresql.postmaster module¶
- class patroni.postgresql.postmaster.PostmasterProcess(pid: int)¶
Bases:
Process
- classmethod from_pid(pid: int) Optional[PostmasterProcess] ¶
- static from_pidfile(data_dir: str) Optional[PostmasterProcess] ¶
- signal_kill() bool ¶
to suspend and kill postmaster and all children
:returns True if postmaster and children are killed, False if error
- signal_stop(mode: str, pg_ctl: str = 'pg_ctl') Optional[bool] ¶
Signal postmaster process to stop
:returns None if signaled, True if process is already gone, False if error