Does postgresql jdbc driver have \ copy?

as noted,

Does java jdbc driver for postgresql have client side \ copy?

I wanted to do batch insertions into a table in a database on a remote machine with data from my text file on another machine.

+5
source share
2 answers

Since driver 8.4 supports the COPY command, through CopyManager:

http://jdbc.postgresql.org/documentation/publicapi/org/postgresql/copy/CopyManager.html

+9
source

add the ip of your system from where you used to update the database in the pg_hba.conf file connect usinyg url

jdbc:postgresql://host:port/database

fulfill the request

0
source

All Articles