- Notifications
You must be signed in to change notification settings - Fork28
Commit8103444
committed
Fix leaking of small spilled subtransactions during logical decoding.
When, during logical decoding, a transaction gets too big, it'scontents get spilled to disk. Not just the top-transaction getsspilled, but *also* all of its subtransactions, even if they're notthat large themselves. Unfortunately we didn't clean upsuch small spilled subtransactions from disk.Fix that, by keeping better track of whether a transaction has beenspilled to disk.Author: Andres FreundReported-By: Dmitriy Sarafannikov, Fabrízio de Royes MelloDiscussion:https://postgr.es/m/1457621358.355011041@f382.i.mail.ruhttps://postgr.es/m/CAFcNs+qNMhNYii4nxpO6gqsndiyxNDYV0S=JNq0v_sEE+9PHXg@mail.gmail.comBackpatch: 9.4-, where logical decoding was introduced1 parenta9a5eb3 commit8103444
File tree
2 files changed
+13
-3
lines changed- src
- backend/replication/logical
- include/replication
2 files changed
+13
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
937 |
| - | |
| 937 | + | |
938 | 938 |
| |
939 | 939 |
| |
940 | 940 |
| |
| |||
963 | 963 |
| |
964 | 964 |
| |
965 | 965 |
| |
966 |
| - | |
| 966 | + | |
967 | 967 |
| |
968 | 968 |
| |
969 | 969 |
| |
| |||
1185 | 1185 |
| |
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 |
| - | |
| 1188 | + | |
1189 | 1189 |
| |
1190 | 1190 |
| |
1191 | 1191 |
| |
| |||
2167 | 2167 |
| |
2168 | 2168 |
| |
2169 | 2169 |
| |
| 2170 | + | |
2170 | 2171 |
| |
2171 | 2172 |
| |
2172 | 2173 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
215 | 224 |
| |
216 | 225 |
| |
217 | 226 |
| |
|
0 commit comments
Comments
(0)