Repository navigation
Commit c1055b4
committed
fix(copy): replace Sync with Flush in copy_in encoding (GREEN)
Add encode_no_sync() that sends Bind+Execute+Flush instead of
Bind+Execute+Sync. Wire encode_copy_in() to use it.
This fixes the double-Sync crash: copy_in no longer sends Sync in
the initial message, so CopyInReceiver's Sync with CopyDone/CopyFail
is the only one — exactly one ReadyForQuery per COPY cycle.
The Flush message forces the server to deliver buffered output without
producing ReadyForQuery, which prevents a hang when the server rejects
the COPY before entering COPY mode (error path).
https://claude.ai/code/session_017Lx8faWtxGJDiU2rbqGeHm1 parent 5e003fe commit c1055b4
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
270 | 298 | | |
271 | 299 | | |
272 | 300 | | |
| |||
0 commit comments