From 420537f0926b2b861238ce2fc3dfc8cc9adb8532 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:20:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Fix=20the=20problem=20of=20abnormal=20ad?= =?UTF-8?q?dition=20of=20remote=20connections=20to=20th=E2=80=A6=20(#9174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #9151 --- agent/utils/postgresql/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/utils/postgresql/client.go b/agent/utils/postgresql/client.go index 09f1ef168..aea8e3c7f 100644 --- a/agent/utils/postgresql/client.go +++ b/agent/utils/postgresql/client.go @@ -33,7 +33,7 @@ func NewPostgresqlClient(conn client.DBInfo) (PostgresqlClient, error) { } escapedUsername := url.QueryEscape(conn.Username) escapedPassword := url.QueryEscape(conn.Password) - connArgs := fmt.Sprintf("postgres://%s:%s@%s:%d/?sslmode=disable", escapedUsername, escapedPassword, conn.Address, conn.Port) + connArgs := fmt.Sprintf("postgres://%s:%s@%s:%d/postgres?sslmode=disable", escapedUsername, escapedPassword, conn.Address, conn.Port) db, err := sql.Open("pgx", connArgs) if err != nil { return nil, err