forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita08363d
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 parentfed8dcd commita08363d
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 |
| |
| |||
166 | 165 |
| |
167 | 166 |
| |
168 | 167 |
| |
169 |
| - | |
170 | 168 |
| |
171 | 169 |
| |
172 | 170 |
| |
| |||
318 | 316 |
| |
319 | 317 |
| |
320 | 318 |
| |
321 |
| - | |
322 | 319 |
| |
323 | 320 |
| |
324 | 321 |
| |
| |||
348 | 345 |
| |
349 | 346 |
| |
350 | 347 |
| |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
358 | 351 |
| |
359 |
| - | |
360 |
| - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
366 |
| - | |
367 |
| - | |
368 | 366 |
| |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
373 | 372 |
| |
374 | 373 |
| |
375 | 374 |
| |
|
0 commit comments
Comments
(0)