]> granicus.if.org Git - postgresql/commit
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)
commita63b63ff96293e153d25e8e054a830d70f69938a
treea96b02c91c04908c832fce3d06b6a1d2ebc2f7df
parent3b3251cb95001be2f911e16280fd99e7dd559620
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