- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4bcccea

Amit Kapila
Fix memory leak in SnapBuildSerialize.
The memory for the snapshot was leaked while serializing it to disk duringlogical decoding. This memory will be freed only once walsender stopsstreaming the changes. This can lead to a huge memory increase when masterlogs Standby Snapshot too frequently say when the user is trying to createmany replication slots.Reported-by: funnyxj.fxj@alibaba-inc.comDiagnosed-by: funnyxj.fxj@alibaba-inc.comAuthor: Amit KapilaBackpatch-through: 9.5Discussion:https://postgr.es/m/033ab54c-6393-42ee-8ec9-2b399b5d8cde.funnyxj.fxj@alibaba-inc.com1 parenta8bb366 commit4bcccea
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 | 1449 |
| |
1450 |
| - | |
| 1450 | + | |
1451 | 1451 |
| |
1452 | 1452 |
| |
1453 | 1453 |
| |
| |||
1639 | 1639 |
| |
1640 | 1640 |
| |
1641 | 1641 |
| |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1642 | 1645 |
| |
1643 | 1646 |
| |
1644 | 1647 |
| |
|
0 commit comments
Comments
(0)