Added COPY TO STDOUT support#720
Conversation
[resolves pgjdbc#332] This adds a new PostgresqlConnection.copyOut method to support COPY ... TO STDOUT statements. In addition, PostgresqlResult now fails when executing these statements, rather than silently dropping all the data.
|
Thanks a lot, like how this change is shaped. I am not sure when I will be able to have a look, will be on vacation starting next week (just fyi). |
|
One thing to note, I did consider originally adding this under There's a few things that I'm not sure about - I explicitly complete the downstream sink when receiving a Something to be aware of, the Postgres protocol has no difficulties combining I marked it as |
Provides #332
This adds a new
PostgresqlConnection.copyOut(String sql)method to supportCOPY ... TO STDOUTstatements.In addition, PostgresqlResult now fails when executing these statements, rather than silently dropping all the data.