Postgres allows the path to certificates to be specified among the URL query params, e.g. jdbc:postgresql://host:port/dbname?sslmode=verify-full&sslrootcert=/some/path.pem. Prior to this fix, the db.instance tag would be set to path.pem instead of dbname.
This change counts slashes from the left, rather than the right, when detecting the DB name.
Postgres allows the path to certificates to be specified among the URL query params, e.g.
jdbc:postgresql://host:port/dbname?sslmode=verify-full&sslrootcert=/some/path.pem
. Prior to this fix, thedb.instance
tag would be set topath.pem
instead ofdbname
.This change counts slashes from the left, rather than the right, when detecting the DB name.