Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit152faf3

Browse files
committed
Add instance names for 9.6 and 10
1 parent1bd538f commit152faf3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

‎testgres/node.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def get_auxiliary_pids(self):
479479

480480
result= {}
481481
forchildinchildren:
482-
line=child.cmdline()[0]
482+
line=' '.join(child.cmdline())
483483
forptypeinProcessType:
484484
ifptype==ProcessType.WalSender \
485485
and (line.startswith(ptype.value)or
@@ -513,8 +513,10 @@ def get_walsender_pid(self):
513513
forname,client_portinself._master.execute(sql):
514514
ifname==self.name:
515515
forchildinchildren:
516-
line=child.cmdline()[0]
517-
ifline.startswith('postgres: walsender')andstr(client_port)inline:
516+
line=' '.join(child.cmdline())
517+
if (line.startswith(ProcessType.WalSender.value)or
518+
line.startswith('postgres: wal sender'))and \
519+
str(client_port)inline:
518520
returnchild.pid
519521

520522
returnNone

‎tests/test_simple.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,15 +709,17 @@ def test_pids(self):
709709
exceptImportError:
710710
psutil=None
711711

712-
master_processes=(
712+
master_processes=[
713713
ProcessType.Checkpointer,
714714
ProcessType.BackgroundWriter,
715715
ProcessType.WalWriter,
716716
ProcessType.AutovacuumLauncher,
717717
ProcessType.StatsCollector,
718-
ProcessType.LogicalReplicationLauncher,
719718
ProcessType.WalSender,
720-
)
719+
]
720+
ifpg_version_ge('10'):
721+
master_processes.append(ProcessType.LogicalReplicationLauncher)
722+
721723
repl_processes= (
722724
ProcessType.Startup,
723725
ProcessType.Checkpointer,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp