diff --git a/divio_cli/localdev/main.py b/divio_cli/localdev/main.py index 67d85863..30c3cff4 100644 --- a/divio_cli/localdev/main.py +++ b/divio_cli/localdev/main.py @@ -350,10 +350,7 @@ def prepare_db_server_postgres(self, db_container_id, start_wait): "-U", "postgres", "-c", - "SELECT pg_terminate_backend(pg_stat_activity.pid) " - "FROM pg_stat_activity " - "WHERE pg_stat_activity.datname = 'db' " - " AND pid <> pg_backend_pid();", + "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'db' AND pid <> pg_backend_pid();", ], silent=True, )