aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2023-11-03 13:57:58 -0400
committerBruce Momjian <bruce@momjian.us>2023-11-03 13:57:58 -0400
commit36726b7882180b798768239060e462fc9c184d27 (patch)
treeb6648c0e24576af5acbca8cbe8101602f09a02e6 /src
parent019317756673a5e55171918ab6a2a9a1ebf48648 (diff)
downloadpostgresql-36726b7882180b798768239060e462fc9c184d27.tar.gz
postgresql-36726b7882180b798768239060e462fc9c184d27.zip
doc: \copy can get data values \. and end-of-input confused
Reported-by: Svante Richter Discussion: https://postgr.es/m/fcd57e4-8f23-4c3e-a5db-2571d09208e2@beta.fastmail.com Backpatch-through: 11
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c
index f9e53d62954..182830f0ccb 100644
--- a/src/bin/psql/copy.c
+++ b/src/bin/psql/copy.c
@@ -631,6 +631,7 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
* This code erroneously assumes '\.' on a line alone
* inside a quoted CSV string terminates the \copy.
* http://www.postgresql.org/message-id/E1TdNVQ-0001ju-GO@wrigleys.postgresql.org
+ * https://www.postgresql.org/message-id/bfcd57e4-8f23-4c3e-a5db-2571d09208e2@beta.fastmail.com
*/
if (strcmp(buf, "\\.\n") == 0 ||
strcmp(buf, "\\.\r\n") == 0)