Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions pg_perfbench/db_operations/conn_tasks/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, db_conf, conn, logger):
async def stop_db(self):
try:
res = await self.conn.run_command(
f"su - postgres -c '{self.pg_bin_path}/pg_ctl stop -D {self.pg_data_path}'"
f"{self.pg_bin_path}/pg_ctl stop -D {self.pg_data_path}"
)
return res
except Exception as e:
Expand All @@ -21,7 +21,7 @@ async def stop_db(self):

async def start_db(self):
res = await self.conn.run_command(
f"su - postgres -c '{self.pg_bin_path}/pg_ctl start -D {self.pg_data_path}'"
f"{self.pg_bin_path}/pg_ctl start -D {self.pg_data_path}"
)
return res

Expand Down