25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(postgres): include public schema in search_path for PostGIS functions (#1817)
HaoNan Ye11ed3a0d3ba1
diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rsindex 96f5eda807..47df3e1a7d 100644--- a/crates/dbx-core/src/db/postgres.rs+++ b/crates/dbx-core/src/db/postgres.rs@@ -1850,7 +1850,10 @@ pub async fn execute_query_with_schema_and_max_rows(}let set_schema_start = Instant::now();- client.execute(&format!("SET search_path TO {}", pg_quote_ident(schema)), &[]).await.map_err(pg_error_to_string)?;+ client+ .execute(&format!("SET search_path TO {}, public", pg_quote_ident(schema)), &[])+ .await+ .map_err(pg_error_to_string)?;log::info!("[postgres][execute_with_schema:set-search-path:done] elapsed_ms={} total_ms={}",set_schema_start.elapsed().as_millis(),@@ -1914,7 +1917,10 @@ pub async fn execute_query_with_schema_and_max_rows_and_cancel(}let set_schema_start = Instant::now();- client.execute(&format!("SET search_path TO {}", pg_quote_ident(schema)), &[]).await.map_err(pg_error_to_string)?;+ client+ .execute(&format!("SET search_path TO {}, public", pg_quote_ident(schema)), &[])+ .await+ .map_err(pg_error_to_string)?;log::info!("[postgres][execute_with_schema:set-search-path:done] elapsed_ms={} total_ms={}",set_schema_start.elapsed().as_millis(),