- Notifications
You must be signed in to change notification settings - Fork5
Commit22122c8
committed
Fix full-page writes of internal GIN pages.
Insertion to a non-leaf GIN page didn't make a full-page image of the page,which is wrong. The code used to do it correctly, but was changed (commit853d1c3) because the redo-routine didn'ttrack incomplete splits correctly when the page was restored from a fullpage image. Of course, that was not right way to fix it, the redo routineshould've been fixed instead. The redo-routine was surreptitiously fixedin 2010 (commit4016bde), so all we needto do now is revert the code that creates the record to its original form.This doesn't change the format of the WAL record.Backpatch to all supported versions.1 parent4a8adfd commit22122c8
2 files changed
+10
-5
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 |
| - | |
| 385 | + | |
| 386 | + | |
386 | 387 |
| |
387 | 388 |
| |
388 | 389 |
| |
389 | 390 |
| |
390 |
| - | |
| 391 | + | |
| 392 | + | |
391 | 393 |
| |
392 | 394 |
| |
393 | 395 |
| |
| |||
398 | 400 |
| |
399 | 401 |
| |
400 | 402 |
| |
401 |
| - | |
| 403 | + | |
| 404 | + | |
402 | 405 |
| |
403 | 406 |
| |
404 | 407 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
| 526 | + | |
| 527 | + | |
527 | 528 |
| |
528 | 529 |
| |
529 | 530 |
| |
530 | 531 |
| |
531 | 532 |
| |
532 |
| - | |
| 533 | + | |
| 534 | + | |
533 | 535 |
| |
534 | 536 |
| |
535 | 537 |
| |
|
0 commit comments
Comments
(0)