forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit66f8a13
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 parente24c02e commit66f8a13
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 | |
---|---|---|---|
| |||
1493 | 1493 |
| |
1494 | 1494 |
| |
1495 | 1495 |
| |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
1496 | 1502 |
| |
1497 | 1503 |
| |
1498 | 1504 |
| |
| |||
1580 | 1586 |
| |
1581 | 1587 |
| |
1582 | 1588 |
| |
1583 |
| - | |
1584 |
| - | |
1585 |
| - | |
1586 |
| - | |
1587 |
| - | |
1588 |
| - | |
1589 | 1589 |
| |
1590 | 1590 |
| |
1591 | 1591 |
| |
|
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)