forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf91706b
committed
Store the deletion horizon XID for a deleted GIN page on the right page.
Commitb107140 moved the GinPageSetDeleteXid() call to a spot wherethe "page" variable was pointing to the wrong page, causing the XIDto be inserted on a page that's not being deleted, thus allowing laterGinPageIsRecyclable tests to recycle the deleted page too soon.It might be a good idea to stop using the single "page" variable formultiple purposes in this function. But for the moment I just movedthe GinPageSetDeleteXid() call down beside the GinPageSetDeleted()call, which seems like a more logical place for it anyway.Back-patch to v11, as the faulty patch was. (Fortunately, the bughasn't made it into any release yet.)Discussion:https://postgr.es/m/21620.1581098806@sss.pgh.pa.us1 parent0d233f4 commitf91706b
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
| |||
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
0 commit comments
Comments
(0)