forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitafe9b0d
committed
Fix memory leak in pgoutput for the WAL sender
RelationSyncCache, the hash table in charge of tracking the relationschemas sent through pgoutput, was forgetting to free the TupleDescassociated to the two slots used to store the new and old tuples,causing some memory to be leaked each time a relation is invalidatedwhen the slots of an existing relation entry are cleaned up.This is rather hard to notice as the bloat is pretty minimal, but along-running WAL sender would be in trouble over time depending on theworkload. sysbench has proved to be pretty good at showing the problem,coupled with some memory monitoring of the WAL sender.Issue introduced in52e4f0c, that has added row filters for tableslogically replicated.Author: Boyu YangReviewed-by: Michael Paquier, Hou ZhijieDiscussion:https://postgr.es/m/DM3PR84MB3442E14B340E553313B5C816E3252@DM3PR84MB3442.NAMPRD84.PROD.OUTLOOK.COMBackpatch-through: 151 parent7eff313 commitafe9b0d
1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2055 | 2055 |
| |
2056 | 2056 |
| |
2057 | 2057 |
| |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
2058 | 2063 |
| |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2059 | 2071 |
| |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2060 | 2077 |
| |
2061 | 2078 |
| |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
2062 | 2086 |
| |
2063 | 2087 |
| |
2064 | 2088 |
| |
|
0 commit comments
Comments
(0)