- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit50371df
committed
Don't try to print data type names in slot_store_error_callback().
The existing code tried to do syscache lookups in an already-failedtransaction, which is problematic to say the least. After someconsideration of alternatives, the best fix seems to be to just droptype names from the error message altogether. The table and columnnames seem like sufficient localization. If the user is unsure whattypes are involved, she can check the local and remote tabledefinitions.Having done that, we can also discard the LogicalRepTypMap hashtable, which had no other use. Arguably, LOGICAL_REP_MSG_TYPEreplication messages are now obsolete as well; but we shouldprobably keep them in case some other use emerges. (The complexityof removing something from the replication protocol would likelyoutweigh any savings anyhow.)Masahiko Sawada and Bharath Rupireddy, per complaint from AndresFreund. Back-patch to v10 where this code originated.Discussion:https://postgr.es/m/20210106020229.ne5xnuu6wlondjpe@alap3.anarazel.de1 parent6bd3ec6 commit50371df
File tree
3 files changed
+6
-134
lines changed- src
- backend/replication/logical
- include/replication
3 files changed
+6
-134
lines changedLines changed: 1 addition & 104 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
28 |
| - | |
29 | 27 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 28 | + | |
33 | 29 |
| |
34 | 30 |
| |
35 | 31 |
| |
36 | 32 |
| |
37 |
| - | |
38 | 33 |
| |
39 | 34 |
| |
40 | 35 |
| |
| |||
118 | 113 |
| |
119 | 114 |
| |
120 | 115 |
| |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 | 116 |
| |
131 | 117 |
| |
132 | 118 |
| |
| |||
450 | 436 |
| |
451 | 437 |
| |
452 | 438 |
| |
453 |
| - | |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 |
| - | |
460 |
| - | |
461 |
| - | |
462 |
| - | |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 |
| - | |
471 |
| - | |
472 |
| - | |
473 |
| - | |
474 |
| - | |
475 |
| - | |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
489 |
| - | |
490 |
| - | |
491 |
| - | |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 | 439 |
| |
543 | 440 |
| |
544 | 441 |
| |
|
Lines changed: 5 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
135 |
| - | |
136 | 135 |
| |
137 | 136 |
| |
138 | 137 |
| |
| |||
503 | 502 |
| |
504 | 503 |
| |
505 | 504 |
| |
506 |
| - | |
| 505 | + | |
| 506 | + | |
507 | 507 |
| |
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 | 513 |
| |
517 | 514 |
| |
518 | 515 |
| |
519 | 516 |
| |
520 | 517 |
| |
521 | 518 |
| |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
| 519 | + | |
532 | 520 |
| |
533 |
| - | |
534 |
| - | |
535 |
| - | |
| 521 | + | |
536 | 522 |
| |
537 | 523 |
| |
538 | 524 |
| |
| |||
553 | 539 |
| |
554 | 540 |
| |
555 | 541 |
| |
556 |
| - | |
557 | 542 |
| |
558 | 543 |
| |
559 | 544 |
| |
| |||
573 | 558 |
| |
574 | 559 |
| |
575 | 560 |
| |
576 |
| - | |
577 | 561 |
| |
578 | 562 |
| |
579 | 563 |
| |
| |||
622 | 606 |
| |
623 | 607 |
| |
624 | 608 |
| |
625 |
| - | |
626 | 609 |
| |
627 | 610 |
| |
628 | 611 |
| |
| |||
679 | 662 |
| |
680 | 663 |
| |
681 | 664 |
| |
682 |
| - | |
683 | 665 |
| |
684 | 666 |
| |
685 | 667 |
| |
| |||
702 | 684 |
| |
703 | 685 |
| |
704 | 686 |
| |
705 |
| - | |
706 | 687 |
| |
707 | 688 |
| |
708 | 689 |
| |
| |||
747 | 728 |
| |
748 | 729 |
| |
749 | 730 |
| |
750 |
| - | |
751 | 731 |
| |
752 | 732 |
| |
753 | 733 |
| |
| |||
1217 | 1197 |
| |
1218 | 1198 |
| |
1219 | 1199 |
| |
1220 |
| - | |
1221 |
| - | |
| 1200 | + | |
1222 | 1201 |
| |
1223 | 1202 |
| |
1224 | 1203 |
| |
| |||
1229 | 1208 |
| |
1230 | 1209 |
| |
1231 | 1210 |
| |
1232 |
| - | |
1233 | 1211 |
| |
1234 | 1212 |
| |
1235 | 1213 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 | 49 |
|
0 commit comments
Comments
(0)