File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ def get_auxiliary_pids(self):
479
479
480
480
result = {}
481
481
for child in children :
482
- line = child .cmdline ()[ 0 ]
482
+ line = ' ' . join ( child .cmdline ())
483
483
for ptype in ProcessType :
484
484
if ptype == ProcessType .WalSender \
485
485
and (line .startswith (ptype .value ) or
@@ -513,8 +513,10 @@ def get_walsender_pid(self):
513
513
for name , client_port in self ._master .execute (sql ):
514
514
if name == self .name :
515
515
for child in children :
516
- line = child .cmdline ()[0 ]
517
- if line .startswith ('postgres: walsender' ) and str (client_port ) in line :
516
+ line = ' ' .join (child .cmdline ())
517
+ if (line .startswith (ProcessType .WalSender .value ) or
518
+ line .startswith ('postgres: wal sender' )) and \
519
+ str (client_port ) in line :
518
520
return child .pid
519
521
520
522
return None
Original file line number Diff line number Diff line change @@ -709,15 +709,17 @@ def test_pids(self):
709
709
except ImportError :
710
710
psutil = None
711
711
712
- master_processes = (
712
+ master_processes = [
713
713
ProcessType .Checkpointer ,
714
714
ProcessType .BackgroundWriter ,
715
715
ProcessType .WalWriter ,
716
716
ProcessType .AutovacuumLauncher ,
717
717
ProcessType .StatsCollector ,
718
- ProcessType .LogicalReplicationLauncher ,
719
718
ProcessType .WalSender ,
720
- )
719
+ ]
720
+ if pg_version_ge ('10' ):
721
+ master_processes .append (ProcessType .LogicalReplicationLauncher )
722
+
721
723
repl_processes = (
722
724
ProcessType .Startup ,
723
725
ProcessType .Checkpointer ,
You can’t perform that action at this time.
0 commit comments