Skip to content

Commit ddd9e43

Browse files
committed
Remove obsolete comment in CopyReadLineText().
When this bit of commentary was written, it was alluding to the fact that we looked for newlines and EOD markers in the raw (not yet encoding-converted) input data. We don't do that anymore, preferring to batch the conversion of larger chunks of input and split it into lines later. Hence there's no longer any need for assumptions about the relevant characters being encoding-invariant, and we should remove this comment saying we assume that. Discussion: https://postgr.es/m/[email protected]
1 parent a365d9e commit ddd9e43

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backend/commands/copyfromparse.c

-3
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,6 @@ CopyReadLineText(CopyFromState cstate)
12061206
* value and are put in line_buf. We keep just enough state to know if we
12071207
* are currently in a quoted field or not.
12081208
*
1209-
* These four characters, and the CSV escape and quote characters, are
1210-
* assumed the same in frontend and backend encodings.
1211-
*
12121209
* The input has already been converted to the database encoding. All
12131210
* supported server encodings have the property that all bytes in a
12141211
* multi-byte sequence have the high bit set, so a multibyte character

0 commit comments

Comments
 (0)