{"name":"data-ingestion","hostname":"carto-rtorre","pid":31254,"level":40,"msg":"Got an interspersed message: SWARNING\u0000VWARNING\u0000C01000\u0000Mhey, this is returning one\u0000WPL/pgSQL function test_return_one() line 3 at RAISE\u0000Fpl_exec.c\u0000L3337\u0000Rexec_stmt_raise\u0000\u0000","time":"2019-06-04T17:12:32+0200","v":0}
{"name":"data-ingestion","hostname":"carto-rtorre","pid":31254,"level":30,"type":"copyto","format":"TEXT","size":18,"rows":2,"gzip":false,"cdb-user":"development","time":0.002,"timestamp":"2019-06-04T15:12:32.315Z","sql":"COPY (SELECT * FROM test_return_one()) to STDOUT WITH (FORMAT 'csv', HEADER true)","success":true,"msg":"","v":0}
Related to https://github.com/CartoDB/node-pg-copy-streams/pull/9
Tested with the same test function that raises a warning, got the following result now:
and in the copy logs: