This exception message in PostgreSQL81Dialect should be changed to "supports only REF_CURSOR parameters by position":
@Override public ResultSet getResultSet(CallableStatement statement, String name) throws SQLException { throw new UnsupportedOperationException( "PostgreSQL only supports accessing REF_CURSOR parameters by name" ); }