Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

copy.c

  • Tom Lane's avatar
    a63b63ff
    Revert COPY OUT to follow the pre-8.3 handling of ASCII control characters, · a63b63ff
    Tom Lane authored
    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.
    a63b63ff
    History
    Revert COPY OUT to follow the pre-8.3 handling of ASCII control characters,
    Tom Lane authored
    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.