If you want to use the non-global one, then I believe you have to construct a custom factory class you hand to the postgres jdbc driver as an argument. That class would have to use its own TrustManager that looked at the alternate truststore instead of the system one.

It's probably not very much code, but I think the trick is figuring out exactly which Interfaces to implement and such.