Fork me on GitHub
#sql
<
2018-08-14
>
djtango10:08:40

is clojure.java.jdbc tied to any specific org.postgres jdbc version?

djtango10:08:49

is it safe to use the latest postgres jdbc version?

seancorfield13:08:29

@djtango it is tested against whatever version is in the project's deps.edn file but should work with any recent version.

seancorfield13:08:02

(I'm not at my desk right now to look up what version that is)

djtango13:08:19

That's no problem have just jumped into the repo and found the deps.edn - thank you!

djtango13:08:45

We just realised that our existing postgres jdbc driver is like 3 years old

djtango13:08:58

and so a large jump in versions is somewhat scary

djtango13:08:27

Thanks for the heads up!

tanzoniteblack15:08:35

@djtango if you use a connection pooling library, then you'll probably want to check it's recommendations for setting it up with postgres, the postgres JDBC driver has had a number of improvements in the last 3 years that require less specific changes to work optimally in pools (namely, I believe the support for jdbc4's connection checking was added, which means you don't need to set a default query to check the connection status anymore)

tanzoniteblack15:08:58

could be wrong about that...but that's what my overly faulty memory is thinking, so can't hurt to check it out

djtango15:08:21

oo thank you that's great insight

djtango15:08:24

we're using HikariCP

djtango15:08:33

so will definitely also check how those two interrelate

tanzoniteblack15:08:40

the hikariCP author had a change in the postgres driver that got merged last year ( https://github.com/pgjdbc/pgjdbc/pull/849 ) , but you'll benefit from that without having to do any configuration changes