Unfortunately if you're using JRuby you can't benefit from this, as the Postgres JDBC driver does polling.