forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8fd04cb
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 parentb44ae48 commit8fd04cb
2 files changed
+34
-50
lines changedLines changed: 17 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 |
| - | |
385 | 384 |
| |
386 | 385 |
| |
387 | 386 |
| |
| |||
401 | 400 |
| |
402 | 401 |
| |
403 | 402 |
| |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
409 | 406 |
| |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
418 |
| - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
419 | 412 |
| |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
424 |
| - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
425 | 417 |
| |
426 |
| - | |
427 |
| - | |
428 |
| - | |
429 |
| - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
430 | 422 |
| |
431 | 423 |
| |
432 | 424 |
| |
| |||
442 | 434 |
| |
443 | 435 |
| |
444 | 436 |
| |
445 |
| - | |
| 437 | + | |
446 | 438 |
| |
447 | 439 |
| |
448 | 440 |
| |
|
Lines changed: 17 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
490 | 489 |
| |
491 | 490 |
| |
492 | 491 |
| |
| |||
509 | 508 |
| |
510 | 509 |
| |
511 | 510 |
| |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
517 | 514 |
| |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
533 | 520 |
| |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
538 | 530 |
| |
539 | 531 |
| |
540 | 532 |
| |
|
0 commit comments
Comments
(0)