forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteb89cb4

Amit Kapila
pgoutput: Fix memory leak due to RelationSyncEntry.map.
Release memory allocated when creating the tuple-conversion map and itscomponent TupleDescs when its owning sync entry is invalidated.TupleDescs must also be freed when no map is deemed necessary, to beginwith.Reported-by: Andres FreundAuthor: Amit LangoteReviewed-by: Takamichi Osumi, Amit KapilaBackpatch-through: 13, where it was introducedDiscussion:https://postgr.es/m/MEYP282MB166933B1AB02B4FE56E82453B64D9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM1 parenta40646e commiteb89cb4
File tree
2 files changed
+65
-9
lines changed- src
- backend/replication/pgoutput
- test/subscription/t
2 files changed
+65
-9
lines changedLines changed: 38 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
| |||
92 | 93 |
| |
93 | 94 |
| |
94 | 95 |
| |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 | 96 |
| |
100 | 97 |
| |
101 | 98 |
| |
| |||
437 | 434 |
| |
438 | 435 |
| |
439 | 436 |
| |
| 437 | + | |
440 | 438 |
| |
441 | 439 |
| |
442 | 440 |
| |
443 |
| - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
444 | 448 |
| |
445 | 449 |
| |
446 | 450 |
| |
| |||
450 | 454 |
| |
451 | 455 |
| |
452 | 456 |
| |
453 |
| - | |
454 |
| - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
455 | 472 |
| |
456 | 473 |
| |
457 | 474 |
| |
| |||
1011 | 1028 |
| |
1012 | 1029 |
| |
1013 | 1030 |
| |
| 1031 | + | |
1014 | 1032 |
| |
1015 | 1033 |
| |
1016 | 1034 |
| |
| |||
1191 | 1209 |
| |
1192 | 1210 |
| |
1193 | 1211 |
| |
| 1212 | + | |
1194 | 1213 |
| |
1195 | 1214 |
| |
1196 | 1215 |
| |
1197 | 1216 |
| |
1198 | 1217 |
| |
1199 | 1218 |
| |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1200 | 1230 |
| |
1201 | 1231 |
| |
1202 | 1232 |
| |
|
Lines changed: 27 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
624 | 624 |
| |
625 | 625 |
| |
626 | 626 |
| |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + |
0 commit comments
Comments
(0)