Revert COPY OUT to follow the pre-8.3 handling of ASCII control characters,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Dec 2007 00:03:05 +0000 (00:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Dec 2007 00:03:05 +0000 (00:03 +0000)
commit9a0331a497260e65c2216468e917e2637ffcd943
tree859f677252a53b72824771cb2439c99485897e1b
parent1ebbe1880bfe4e40b044a607d04eb87868aa1772
Revert COPY OUT to follow the pre-8.3 handling of ASCII control characters,
namely that \r, \n, \t, \b, \f, \v are dumped as those two-character
representations rather than a backslash and the literal control character.
I had made it do the other to save some code, but this was ill-advised,
because dump files in which these characters appear literally are prone to
newline mangling.  Fortunately, doing it the old way should only cost a few
more lines of code, and not slow down the copy loop materially.
Per bug #3795 from Lou Duchez.
src/backend/commands/copy.c