forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1e74e31
committed
WAL-log inplace update before revealing it to other sessions.
A buffer lock won't stop a reader having already checked tuplevisibility. If a vac_update_datfrozenid() and then a crash happenedduring inplace update of a relfrozenxid value, datfrozenxid couldovertake relfrozenxid. That could lead to "could not access status oftransaction" errors. Back-patch to v12 (all supported versions). Inv14 and earlier, this also back-patches the assertion removal fromcommit7fcf2fa.Discussion:https://postgr.es/m/20240620012908.92.nmisch@google.com1 parent0ea9d40 commit1e74e31
File tree
3 files changed
+46
-18
lines changed- src/backend/access
- heap
- transam
3 files changed
+46
-18
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
208 |
| - | |
| 206 | + |
Lines changed: 45 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6104 | 6104 |
| |
6105 | 6105 |
| |
6106 | 6106 |
| |
| 6107 | + | |
| 6108 | + | |
6107 | 6109 |
| |
6108 | 6110 |
| |
6109 | 6111 |
| |
6110 | 6112 |
| |
6111 | 6113 |
| |
6112 | 6114 |
| |
6113 | 6115 |
| |
| 6116 | + | |
| 6117 | + | |
| 6118 | + | |
6114 | 6119 |
| |
6115 | 6120 |
| |
6116 | 6121 |
| |
| |||
6129 | 6134 |
| |
6130 | 6135 |
| |
6131 | 6136 |
| |
6132 |
| - | |
6133 |
| - | |
6134 |
| - | |
6135 |
| - | |
6136 |
| - | |
6137 |
| - | |
6138 |
| - | |
6139 | 6137 |
| |
6140 |
| - | |
| 6138 | + | |
| 6139 | + | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
| 6145 | + | |
6141 | 6146 |
| |
6142 | 6147 |
| |
6143 | 6148 |
| |
| |||
6147 | 6152 |
| |
6148 | 6153 |
| |
6149 | 6154 |
| |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
6150 | 6159 |
| |
6151 |
| - | |
6152 |
| - | |
| 6160 | + | |
| 6161 | + | |
| 6162 | + | |
6153 | 6163 |
| |
6154 | 6164 |
| |
6155 | 6165 |
| |
6156 | 6166 |
| |
6157 | 6167 |
| |
| 6168 | + | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
6158 | 6177 |
| |
6159 | 6178 |
| |
6160 | 6179 |
| |
6161 | 6180 |
| |
6162 | 6181 |
| |
6163 | 6182 |
| |
6164 | 6183 |
| |
6165 |
| - | |
6166 |
| - | |
| 6184 | + | |
| 6185 | + | |
| 6186 | + | |
| 6187 | + | |
| 6188 | + | |
| 6189 | + | |
| 6190 | + | |
| 6191 | + | |
| 6192 | + | |
| 6193 | + | |
6167 | 6194 |
| |
6168 | 6195 |
| |
6169 | 6196 |
| |
6170 | 6197 |
| |
6171 | 6198 |
| |
6172 |
| - | |
| 6199 | + | |
6173 | 6200 |
| |
6174 | 6201 |
| |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
6175 | 6206 |
| |
6176 | 6207 |
| |
6177 | 6208 |
| |
| |||
6184 | 6215 |
| |
6185 | 6216 |
| |
6186 | 6217 |
| |
| 6218 | + | |
6187 | 6219 |
| |
6188 | 6220 |
| |
6189 | 6221 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
272 |
| - | |
273 |
| - | |
274 | 272 |
| |
275 | 273 |
| |
276 | 274 |
| |
|
0 commit comments
Comments
(0)