Patrick B Kelly wrote:
It would be a major change - the routine doesn't read data a field at a time, and has no idea if we are even in CSV mode at all. It would be rather late in the dev cycle to be making such changes, I suspect.
What about just coding a FSM into backend/commands/copy.c:CopyReadLine() that does not process any flavor of NL characters when it is inside of a data field?
cheers
andrew
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org