-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Description
Currently, for "postgres" detector, "raw" and "raw_v2" contain the same truncated connection string that looks something like this:
postgresql://XXXXX:YYYYYYYY@HOST:PORT
The real connection string may contain additional parameter after PORT like the DBNAME which is necessary to connect. Currently, there seems to be no field to access these additional parameters after the PORT except for "extra_data" which seems to parse "sslmode". In order to get the dbname I would need to manually query the link and parse the parameters.
postgresql://XXXXX:YYYYYYYY@HOST:PORT/DBNAME?sslmode=require ...
Preferred Solution
Since "raw" and "raw_v2" seem to contain the same string maybe we could make raw_v2 the real RAW connection string including all parameters?
Or parse more parameters into "extra_data" json blob.