forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit68a59f9
committed
pgstat: fix subscription stats entry leak.
Commit7b64e4b taught DropSubscription() to drop stats entry ofsubscription that is not associated with a replication slot for applyworker at DROP SUBSCRIPTION but missed covering the case where thesubscription is not associated with replication slots for both applyworker and tablesync worker.Also add a test to verify that the stats for slot-less subscription isremoved at DROP SUBSCRIPTION time.Backpatch down to 15.Author: Masahiko SawadaReviewed-by: Nathan Bossart, Hayato Kuroda, Melih Mutlu, Amit KapilaDiscussion:https://postgr.es/m/CAD21AoB71zkP7uPT7JDPsZcvp0749ExEQnOJxeNKPDFisHar+w@mail.gmail.comBackpatch-through: 151 parentcccdbc5 commit68a59f9
File tree
2 files changed
+26
-6
lines changed- src
- backend/commands
- test/subscription/t
2 files changed
+26
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1646 | 1646 |
| |
1647 | 1647 |
| |
1648 | 1648 |
| |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1649 | 1655 |
| |
1650 | 1656 |
| |
1651 | 1657 |
| |
| |||
1734 | 1740 |
| |
1735 | 1741 |
| |
1736 | 1742 |
| |
1737 |
| - | |
1738 |
| - | |
1739 |
| - | |
1740 |
| - | |
1741 |
| - | |
1742 |
| - | |
1743 | 1743 |
| |
1744 | 1744 |
| |
1745 | 1745 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
267 | 267 |
| |
268 | 268 |
| |
269 | 269 |
| |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
270 | 290 |
| |
271 | 291 |
| |
272 | 292 |
| |
|
0 commit comments
Comments
(0)