The backend is respecting the documented meanings and usage of the QUOTE and ESCAPE options of COPY.
Not sure what a JSON mode would look like though I’m thinking it’s not what was described here...
For now you either need to fiddle with those options of COPY or avoid it and generate your own output document. Didn’t try but I do presume feeding the output to COPY FROM reaults in a valid import.
David J.
On Saturday, October 20, 2018, Dave Cramer <
pg@fastcrypt.com> wrote:
I suggest this is a backend problem...
Dear JDBC-Devs,
i think i found an escaping bug that causes duplicate escaping with backslash when using jdbc drivers CopyManager with JSON results.