- Notifications
You must be signed in to change notification settings - Fork5
Commita5a02a7
committed
Fix the logic in libpqrcv_receive() to determine if there's any incoming data
that can be read without blocking. It used to conclude that there isn't, eventhough there was data in the socket receive buffer. That lead walreceiver toflush the WAL after every received chunk, potentially causing big performanceissues.Backpatch to 9.0, because the performance impact can be very significant.1 parentc667cc2 commita5a02a7
File tree
1 file changed
+17
-18
lines changed- src/backend/replication/libpqwalreceiver
1 file changed
+17
-18
lines changedLines changed: 17 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 | 44 |
| |
46 | 45 |
| |
47 | 46 |
| |
| |||
168 | 167 |
| |
169 | 168 |
| |
170 | 169 |
| |
171 |
| - | |
172 | 170 |
| |
173 | 171 |
| |
174 | 172 |
| |
| |||
321 | 319 |
| |
322 | 320 |
| |
323 | 321 |
| |
324 |
| - | |
325 | 322 |
| |
326 | 323 |
| |
327 | 324 |
| |
| |||
351 | 348 |
| |
352 | 349 |
| |
353 | 350 |
| |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
361 | 354 |
| |
362 |
| - | |
363 |
| - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
369 |
| - | |
370 |
| - | |
371 | 369 |
| |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
376 | 375 |
| |
377 | 376 |
| |
378 | 377 |
| |
|
0 commit comments
Comments
(0)