aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-12-27 18:28:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-12-27 18:28:58 +0000
commit2e4cb7082ca547d017759996b09cea754ab97bcc (patch)
tree0c5b5ddc9193a2f9b4c686f60a23f3c1f7878068 /src/backend/utils/misc
parentf1d1ca9a2663b04c956dcb1b617d18d10d1f9890 (diff)
downloadpostgresql-2e4cb7082ca547d017759996b09cea754ab97bcc.tar.gz
postgresql-2e4cb7082ca547d017759996b09cea754ab97bcc.zip
Disallow digits and lower-case ASCII letters as the delimiter in non-CSV
COPY. We need a restriction here because when the delimiter occurs as a data character, it is emitted with a backslash, and that will only work as desired if CopyReadAttributesText() will interpret the backslash sequence as representing the second character literally. This is currently untrue for 'b', 'f', 'n', 'r', 't', 'v', 'x', and octal digits. For future-proofing and simplicity of explanation, it seems best to disallow a-z and 0-9. We must also disallow dot, since "\." by itself would look like copy EOF. Note: "\N" is by default the null print string, so N would also cause a problem, but that is already tested for.
Diffstat (limited to 'src/backend/utils/misc')
0 files changed, 0 insertions, 0 deletions