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

Pbckp 137 vs move pg node#76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
demonolock merged 6 commits intomasterfromPBCKP-137-vs-move-pg-node
May 3, 2023
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
PBCKP-577 flake8 fixes
  • Loading branch information
v.shepard committedApr 28, 2023
commita3beb766c63d0aacff35da115ae9477256d0335b
23 changes: 12 additions & 11 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -115,6 +115,7 @@ class ProcessProxy(object):
process: wrapped psutill.Process object
ptype: instance of ProcessType
"""

def __init__(self, process, ptype=None):
self.process = process
self.ptype = ptype or ProcessType.from_process(process)
Expand DownExpand Up@@ -697,12 +698,12 @@ def start(self, params=[], wait=True):
return self

_params = [
get_bin_path("pg_ctl"),
"-D", self.data_dir,
"-l", self.pg_log_file,
"-w" if wait else '-W', # --wait or --no-wait
"start"
] + params # yapf: disable
get_bin_path("pg_ctl"),
"-D", self.data_dir,
"-l", self.pg_log_file,
"-w" if wait else '-W', # --wait or --no-wait
"start"
] + params # yapf: disable

try:
execute_utility(_params, self.utils_log_file)
Expand DownExpand Up@@ -752,7 +753,7 @@ def kill(self, someone=None):
"""
if self.is_started:
sig = signal.SIGKILL if os.name != 'nt' else signal.SIGBREAK
if someone== None:
if someoneis None:
os.kill(self.pid, sig)
else:
os.kill(self.auxiliary_pids[someone][0], sig)
Expand DownExpand Up@@ -1496,10 +1497,10 @@ def querier():
return sum

def pgbench_table_checksums(self, dbname="postgres",
pgbench_tables =('pgbench_branches',
'pgbench_tellers',
'pgbench_accounts',
'pgbench_history')
pgbench_tables=('pgbench_branches',
'pgbench_tellers',
'pgbench_accounts',
'pgbench_history')
):
return {(table, self.table_checksum(table, dbname))
for table in pgbench_tables}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp