Example of usage of postgreSQL COPY from JDBC with streaming