From 07ff7a629763d255eae6b850e368bf45b060de4d Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Thu, 5 Feb 2026 21:55:47 -0300 Subject: [PATCH] Fix PostgreSQL health check - remove database-specific check - Removed -d 'postgres' parameter from pg_isready health checks - Health check now only verifies server connection on port 5432 - Fixes false positive failures when PostgreSQL is running but specific database has issues - PostgreSQL logs showed 'database system is ready' but health check was failing --- src/core/bootstrap/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/bootstrap/mod.rs b/src/core/bootstrap/mod.rs index ac8e05b2a..aef90970f 100644 --- a/src/core/bootstrap/mod.rs +++ b/src/core/bootstrap/mod.rs @@ -460,7 +460,7 @@ impl BootstrapManager { tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; let status = SafeCommand::new("pg_isready") .and_then(|c| { - c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"]) + c.args(&["-h", "localhost", "-p", "5432"]) }) .ok() .and_then(|cmd| cmd.execute().ok()) @@ -506,7 +506,7 @@ impl BootstrapManager { tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; let status = SafeCommand::new("pg_isready") .and_then(|c| { - c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"]) + c.args(&["-h", "localhost", "-p", "5432"]) }) .ok() .and_then(|cmd| cmd.execute().ok())