Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

refactor(driver/pg): remove the neon database hack code (#10892)

h3n4l100a46928fc1
diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.go
index 95cb9cb268..4566ad1776 100644
--- a/backend/plugin/db/pg/pg.go
+++ b/backend/plugin/db/pg/pg.go
@@ -84,11 +84,6 @@ func (driver *Driver) Open(ctx context.Context, _ storepb.Engine, config db.Conn
}
connStr := fmt.Sprintf("host=%s port=%s", config.Host, config.Port)
- // TODO(tianzhou): this work-around is no longer needed probably.
- // https://neon.tech/docs/connect/connectivity-issues#c-set-verify-full-for-golang-based-clients
- if strings.HasSuffix(config.Host, ".neon.tech") {
- connStr += " sslmode=verify-full"
- }
connConfig, err := pgx.ParseConfig(connStr)
if err != nil {
return nil, err