Modify COPY TO to emit carriage returns and newlines as backslash escapes

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9832a235c5d809b4cba1d6ff2b3e20f4eda2b396
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-02-12T21:25:41Z
Releases: 7.2.1
Modify COPY TO to emit carriage returns and newlines as backslash escapes
(backslash-r, backslash-n) for protection against newline-conversion
munging.  In future we will also tweak COPY FROM, but this part of the
change should be backwards-compatible.  Per pghackers discussion.
Also, update COPY reference page to describe the backslash conversions
more completely and accurately.

Files

PathChange+/−
doc/src/sgml/ref/copy.sgml modified +97 −45
src/backend/commands/copy.c modified +68 −32