forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit87f9982
committed
Fix failure to mark init buffers as BM_PERMANENT.
This could result in corruption of the init fork of an unlogged indexif the ambuildempty routine for that index used shared buffers tocreate the init fork, which was true for brin, gin, gist, and hashindexes.Patch by me, based on an earlier patch by Michael Paquier, who alsoreviewed this one. This also incorporates an idea from ArturZakirov.Discussion:http://postgr.es/m/CACYUyc8yccE4xfxhqxfh_Mh38j7dRFuxfaK1p6dSNAEUakxUyQ@mail.gmail.com1 parent37289ff commit87f9982
File tree
2 files changed
+8
-3
lines changed- src
- backend/storage/buffer
- include/storage
2 files changed
+8
-3
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1292 | 1292 |
| |
1293 | 1293 |
| |
1294 | 1294 |
| |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1295 | 1300 |
| |
1296 | 1301 |
| |
1297 | 1302 |
| |
1298 | 1303 |
| |
1299 | 1304 |
| |
1300 |
| - | |
| 1305 | + | |
1301 | 1306 |
| |
1302 | 1307 |
| |
1303 | 1308 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
68 |
| - | |
| 67 | + | |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
|
0 commit comments
Comments
(0)