From 930bc76bec1021c9ab8c8cb41cc08d598c2e26d8 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 3 Nov 2023 13:57:58 -0400 Subject: 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 --- src/bin/psql/copy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index 20a744509b6..7254f093fb3 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -633,6 +633,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) -- cgit v1.2.3