forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf906e07
committed
Make sure we wait for protocol-level EOF when ending binary COPY IN.
The previous coding just terminated the COPY immediately after seeingthe EOF marker (-1 where a row field count is expected). The expectedCopyDone or CopyFail message just got thrown away later, since we weren'tin COPY mode anymore. This behavior complicated matters for the JDBCdriver, and arguably was the wrong thing in any case since a CopyFailmessage after the marker wouldn't be honored.Note that there is a behavioral change here: extra data after the EOFmarker was silently ignored before, but now it will cause an error.Hence not back-patching, although this is arguably a bug.Per report and patch by Kris Jurka.1 parentaf0161e commitf906e07
1 file changed
+28
-3
lines changedLines changed: 28 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2058 | 2058 |
| |
2059 | 2059 |
| |
2060 | 2060 |
| |
2061 |
| - | |
2062 |
| - | |
| 2061 | + | |
2063 | 2062 |
| |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
2064 | 2089 |
| |
2065 | 2090 |
| |
2066 | 2091 |
| |
|
0 commit comments
Comments
(0)