NickName:synapse Ask DateTime:2022-11-23T06:07:24 Using PostgreSQL COPY FROM STDIN Is it possible to use PostgreSQL's COPY FROM STDIN statement to load data from CSV file by passing some sort of Reader or Writer object the same way it's done in Java? What library should I use? Kotlin example for reference: val cm = CopyManager(conn as BaseConnection) val total = cm.copyIn("COPY my_table FROM STDIN FORMAT csv", inputStream) Copyright Notice:Content Author:「synapse」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/74539520/using-postgresql-copy-from-stdin Answers