From affd8b38a1b6b9c9ab8725bc8b4d1ffceed1911d Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Tue, 26 May 2026 12:10:07 +0800 Subject: [PATCH] fix: include postgres template databases in picker --- crates/dbx-core/src/db/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rs index 70c7939079..c1ec17beb6 100644 --- a/crates/dbx-core/src/db/postgres.rs +++ b/crates/dbx-core/src/db/postgres.rs @@ -413,7 +413,7 @@ pub async fn list_databases(pool: &Pool) -> Result, String> { let stmt = client .prepare_cached( "SELECT datname FROM pg_database \ - WHERE datistemplate = false AND datallowconn = true \ + WHERE datallowconn = true \ ORDER BY datname", ) .await