Unfortunatelly there is no way I know of. Using the url might work for some - people that use the original bla-bla.us-east-1.redshift.amazonaws.com hostname. However I can imagine that it is not always the case. Many will use their own hostnames in their own domain I guess. It might be a better guess to look at the port. As I see it's 5439. I'm not sure if it's 100%, but I guess it's more likely to stay like that (unless someone does some port forwarding magic) so maybe: "jdbc:postgresql:" and port:5439 might be a good guess.
↧