Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does postgresql jdbc driver has \copy?

as stated,

does java jdbc driver for postgresql has client side \copy?

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

like image 399
goh Avatar asked Apr 20 '11 06:04

goh


1 Answers

Since the 8.4 driver there is support for the COPY command, through the CopyManager:

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

like image 70
a_horse_with_no_name Avatar answered Nov 15 '22 01:11

a_horse_with_no_name