]> granicus.if.org Git - postgresql/commit
Modify COPY TO to emit carriage returns and newlines as backslash escapes
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Feb 2002 21:25:41 +0000 (21:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Feb 2002 21:25:41 +0000 (21:25 +0000)
commit9832a235c5d809b4cba1d6ff2b3e20f4eda2b396
treed55ab539650e9c4fa5f7d8b143403ba78969114d
parentc16ef167df36a6364a981e1a9f61a8ab8003fe94
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.
doc/src/sgml/ref/copy.sgml
src/backend/commands/copy.c