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

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 parentbea449c commitee1b38f
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1488 | 1488 |
| |
1489 | 1489 |
| |
1490 | 1490 |
| |
1491 |
| - | |
| 1491 | + | |
1492 | 1492 |
| |
1493 | 1493 |
| |
1494 | 1494 |
| |
| |||
1687 | 1687 |
| |
1688 | 1688 |
| |
1689 | 1689 |
| |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1690 | 1693 |
| |
1691 | 1694 |
| |
1692 | 1695 |
| |
|
0 commit comments
Comments
(0)