forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit16d52fc
committed
Refactor sending of DataRow messages in replication protocol
Some routines open-coded the construction of DataRow messages. UseTupOutputState struct and associated functions instead, which wasalready done in some places.SendTimeLineHistory() is a bit more complicated and isn't converted bythis.Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/7e4fdbdc-699c-4cd0-115d-fb78a957fc22@enterprisedb.com1 parentb55f62a commit16d52fc
File tree
2 files changed
+33
-47
lines changed- src/backend
- access/common
- replication
2 files changed
+33
-47
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
124 | 135 |
| |
125 | 136 |
| |
126 | 137 |
| |
|
Lines changed: 22 additions & 47 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| 36 | + | |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
| |||
86 | 88 |
| |
87 | 89 |
| |
88 | 90 |
| |
89 |
| - | |
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
| |||
339 | 340 |
| |
340 | 341 |
| |
341 | 342 |
| |
| 343 | + | |
342 | 344 |
| |
343 |
| - | |
344 |
| - | |
345 |
| - | |
| 345 | + | |
| 346 | + | |
346 | 347 |
| |
347 | 348 |
| |
348 | 349 |
| |
| |||
355 | 356 |
| |
356 | 357 |
| |
357 | 358 |
| |
358 |
| - | |
| 359 | + | |
359 | 360 |
| |
360 | 361 |
| |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
368 | 365 |
| |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
| 366 | + | |
374 | 367 |
| |
375 | 368 |
| |
376 | 369 |
| |
| |||
383 | 376 |
| |
384 | 377 |
| |
385 | 378 |
| |
| 379 | + | |
386 | 380 |
| |
387 |
| - | |
388 | 381 |
| |
389 | 382 |
| |
390 | 383 |
| |
| |||
395 | 388 |
| |
396 | 389 |
| |
397 | 390 |
| |
398 |
| - | |
| 391 | + | |
399 | 392 |
| |
400 | 393 |
| |
401 | 394 |
| |
402 | 395 |
| |
403 | 396 |
| |
| 397 | + | |
| 398 | + | |
404 | 399 |
| |
405 | 400 |
| |
406 |
| - | |
407 |
| - | |
408 | 401 |
| |
409 | 402 |
| |
410 |
| - | |
411 |
| - | |
| 403 | + | |
| 404 | + | |
412 | 405 |
| |
413 | 406 |
| |
414 | 407 |
| |
415 |
| - | |
416 |
| - | |
417 |
| - | |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
| 408 | + | |
| 409 | + | |
424 | 410 |
| |
425 | 411 |
| |
426 |
| - | |
| 412 | + | |
427 | 413 |
| |
428 |
| - | |
| 414 | + | |
429 | 415 |
| |
430 |
| - | |
| 416 | + | |
431 | 417 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 | 418 |
| |
442 |
| - | |
443 |
| - | |
444 |
| - | |
| 419 | + | |
445 | 420 |
|
0 commit comments
Comments
(0)