On 4/2/2015 9:26 AM, akshunj wrote:
> Is there a way to get the JDBC driver version from the command line? I'd
> like to make the name generic for various administrative reasons.
>
> I suspect this could be done using something along the lines of:
>
> java -cp ./postgresql.jdbc4.jar org.postgresql.Driver -version
>
> I'm not fluent in Java, so I would appreciate any help.
pretty sure you'd need a java application that calls the
getMajorVersion() and getMinorVersion() methods of the driver. don't
think there's any way to do that from a command line.
--
john r pierce, recycling bits in santa cruz