The correct way to do this, I believe, is to `CREATE TEMP TABLE to_insert ON COMMIT DROP`, then `COPY INTO to_insert` and `INSERT INTO target SELECT * FROM to_insert RETURNING`. This gives you all the perf benefit of `COPY` while still giving you the ability to use `RETURNING`.