diff --git a/postgresql.go b/postgresql.go index 8c5d46b..3235d7e 100644 --- a/postgresql.go +++ b/postgresql.go @@ -31,7 +31,7 @@ func Connect(cfg Config, server string) (db *sql.DB, err error) { // connect if cfg.UseElasticAPM { - db, err = apmsql.Open("pgx", uri) + db, err = apmsql.Open("pgxv4", uri) } else { db, err = sql.Open("pgx", uri) }