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

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 parente2f21ff commitd250568
File tree
2 files changed
+69
-8
lines changed- src
- backend/replication/pgoutput
- test/subscription/t
2 files changed
+69
-8
lines changedLines changed: 42 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
63 | 67 |
| |
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| |||
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
| 295 | + | |
295 | 296 |
| |
296 | 297 |
| |
297 | 298 |
| |
298 |
| - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
299 | 306 |
| |
300 | 307 |
| |
301 | 308 |
| |
| |||
305 | 312 |
| |
306 | 313 |
| |
307 | 314 |
| |
308 |
| - | |
309 |
| - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
310 | 330 |
| |
311 | 331 |
| |
312 | 332 |
| |
| |||
759 | 779 |
| |
760 | 780 |
| |
761 | 781 |
| |
| 782 | + | |
762 | 783 |
| |
763 | 784 |
| |
764 | 785 |
| |
| |||
801 | 822 |
| |
802 | 823 |
| |
803 | 824 |
| |
| 825 | + | |
804 | 826 |
| |
805 | 827 |
| |
| 828 | + | |
806 | 829 |
| |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
807 | 842 |
| |
808 | 843 |
| |
809 | 844 |
| |
|
Lines changed: 27 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + |
0 commit comments
Comments
(0)