forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1489b1c
committed
Standardize rmgrdesc recovery conflict XID output.
Standardize on the name snapshotConflictHorizon for all XID fields fromWAL records that generate recovery conflicts when in hot standby mode.This supersedes the previous latestRemovedXid naming convention.The new naming convention places emphasis on how the values are actuallyused by REDO routines. How the values are generated during originalexecution (details of which vary by record type) is deemphasized. Usersof tools like pg_waldump can now grep for snapshotConflictHorizon to seeall potential sources of recovery conflicts in a standardized way,without necessarily having to consider which specific record types mightbe involved.Also bring a couple of WAL record types that didn't follow any kind ofnaming convention into line. These are heapam's VISIBLE record type andSP-GiST's VACUUM_REDIRECT record type. Now every WAL record whose REDOroutine calls ResolveRecoveryConflictWithSnapshot() passes through thesnapshotConflictHorizon field from its WAL record. This is follow-upwork to the refactoring from commit9e54059 that made FREEZE_PAGE WALrecords use a standard snapshotConflictHorizon style XID cutoff.No bump in XLOG_PAGE_MAGIC, since the underlying format of affected WALrecords doesn't change.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CAH2-Wzm2CQUmViUq7Opgk=McVREHSOorYaAjR1ZpLYkRN7_dPw@mail.gmail.com1 parent6ff5aa1 commit1489b1c
File tree
27 files changed
+179
-150
lines changed- src
- backend
- access
- gist
- hash
- heap
- index
- nbtree
- rmgrdesc
- spgist
- storage/ipc
- include
- access
- storage
27 files changed
+179
-150
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1665 | 1665 |
| |
1666 | 1666 |
| |
1667 | 1667 |
| |
1668 |
| - | |
| 1668 | + | |
1669 | 1669 |
| |
1670 | 1670 |
| |
1671 |
| - | |
| 1671 | + | |
1672 | 1672 |
| |
1673 | 1673 |
| |
1674 | 1674 |
| |
| |||
1694 | 1694 |
| |
1695 | 1695 |
| |
1696 | 1696 |
| |
1697 |
| - | |
| 1697 | + | |
1698 | 1698 |
| |
1699 | 1699 |
| |
1700 | 1700 |
| |
|
Lines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
| 391 | + | |
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
398 |
| - | |
| 398 | + | |
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
| |||
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 |
| - | |
| 600 | + | |
601 | 601 |
| |
602 | 602 |
| |
603 | 603 |
| |
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
613 |
| - | |
| 613 | + | |
614 | 614 |
| |
615 | 615 |
| |
616 | 616 |
| |
| |||
672 | 672 |
| |
673 | 673 |
| |
674 | 674 |
| |
675 |
| - | |
| 675 | + | |
676 | 676 |
| |
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
680 |
| - | |
| 680 | + | |
681 | 681 |
| |
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
686 | 686 |
| |
687 | 687 |
| |
688 |
| - | |
| 688 | + | |
| 689 | + | |
689 | 690 |
| |
690 | 691 |
| |
691 | 692 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1000 | 1000 |
| |
1001 | 1001 |
| |
1002 | 1002 |
| |
1003 |
| - | |
| 1003 | + | |
| 1004 | + | |
1004 | 1005 |
| |
1005 | 1006 |
| |
1006 | 1007 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
363 |
| - | |
| 363 | + | |
364 | 364 |
| |
365 |
| - | |
| 365 | + | |
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| |||
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
402 |
| - | |
| 402 | + | |
403 | 403 |
| |
404 | 404 |
| |
405 | 405 |
| |
| |||
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
412 |
| - | |
| 411 | + | |
| 412 | + | |
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
|
Lines changed: 43 additions & 33 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6792 | 6792 |
| |
6793 | 6793 |
| |
6794 | 6794 |
| |
6795 |
| - | |
| 6795 | + | |
6796 | 6796 |
| |
6797 | 6797 |
| |
6798 | 6798 |
| |
| |||
6815 | 6815 |
| |
6816 | 6816 |
| |
6817 | 6817 |
| |
6818 |
| - | |
| 6818 | + | |
6819 | 6819 |
| |
6820 | 6820 |
| |
6821 | 6821 |
| |
6822 | 6822 |
| |
6823 | 6823 |
| |
6824 |
| - | |
6825 | 6824 |
| |
6826 | 6825 |
| |
6827 | 6826 |
| |
6828 | 6827 |
| |
6829 |
| - | |
6830 |
| - | |
| 6828 | + | |
| 6829 | + | |
6831 | 6830 |
| |
6832 |
| - | |
| 6831 | + | |
6833 | 6832 |
| |
6834 | 6833 |
| |
6835 | 6834 |
| |
| |||
7401 | 7400 |
| |
7402 | 7401 |
| |
7403 | 7402 |
| |
7404 |
| - | |
7405 |
| - | |
7406 |
| - | |
7407 |
| - | |
7408 |
| - | |
| 7403 | + | |
| 7404 | + | |
| 7405 | + | |
| 7406 | + | |
| 7407 | + | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
7409 | 7414 |
| |
7410 | 7415 |
| |
7411 |
| - | |
7412 |
| - | |
| 7416 | + | |
| 7417 | + | |
7413 | 7418 |
| |
7414 | 7419 |
| |
7415 | 7420 |
| |
7416 | 7421 |
| |
7417 | 7422 |
| |
7418 | 7423 |
| |
7419 | 7424 |
| |
7420 |
| - | |
7421 |
| - | |
| 7425 | + | |
| 7426 | + | |
7422 | 7427 |
| |
7423 | 7428 |
| |
7424 | 7429 |
| |
| |||
7431 | 7436 |
| |
7432 | 7437 |
| |
7433 | 7438 |
| |
7434 |
| - | |
7435 |
| - | |
| 7439 | + | |
| 7440 | + | |
7436 | 7441 |
| |
7437 |
| - | |
7438 |
| - | |
7439 | 7442 |
| |
7440 | 7443 |
| |
7441 | 7444 |
| |
| |||
7558 | 7561 |
| |
7559 | 7562 |
| |
7560 | 7563 |
| |
7561 |
| - | |
| 7564 | + | |
7562 | 7565 |
| |
7563 | 7566 |
| |
7564 | 7567 |
| |
| |||
7769 | 7772 |
| |
7770 | 7773 |
| |
7771 | 7774 |
| |
7772 |
| - | |
7773 |
| - | |
| 7775 | + | |
| 7776 | + | |
7774 | 7777 |
| |
7775 | 7778 |
| |
7776 | 7779 |
| |
| |||
7805 | 7808 |
| |
7806 | 7809 |
| |
7807 | 7810 |
| |
7808 |
| - | |
| 7811 | + | |
7809 | 7812 |
| |
7810 | 7813 |
| |
7811 | 7814 |
| |
7812 |
| - | |
7813 |
| - | |
| 7815 | + | |
| 7816 | + | |
7814 | 7817 |
| |
7815 | 7818 |
| |
7816 | 7819 |
| |
| |||
7824 | 7827 |
| |
7825 | 7828 |
| |
7826 | 7829 |
| |
7827 |
| - | |
| 7830 | + | |
| 7831 | + | |
7828 | 7832 |
| |
7829 | 7833 |
| |
7830 | 7834 |
| |
| |||
7856 | 7860 |
| |
7857 | 7861 |
| |
7858 | 7862 |
| |
7859 |
| - | |
| 7863 | + | |
7860 | 7864 |
| |
7861 | 7865 |
| |
7862 | 7866 |
| |
| |||
8232 | 8236 |
| |
8233 | 8237 |
| |
8234 | 8238 |
| |
| 8239 | + | |
| 8240 | + | |
| 8241 | + | |
8235 | 8242 |
| |
8236 | 8243 |
| |
8237 | 8244 |
| |
8238 | 8245 |
| |
8239 | 8246 |
| |
8240 | 8247 |
| |
8241 | 8248 |
| |
8242 |
| - | |
| 8249 | + | |
8243 | 8250 |
| |
8244 | 8251 |
| |
8245 | 8252 |
| |
| |||
8248 | 8255 |
| |
8249 | 8256 |
| |
8250 | 8257 |
| |
8251 |
| - | |
| 8258 | + | |
8252 | 8259 |
| |
8253 | 8260 |
| |
8254 | 8261 |
| |
| |||
8683 | 8690 |
| |
8684 | 8691 |
| |
8685 | 8692 |
| |
8686 |
| - | |
| 8693 | + | |
| 8694 | + | |
8687 | 8695 |
| |
8688 | 8696 |
| |
8689 | 8697 |
| |
| |||
8851 | 8859 |
| |
8852 | 8860 |
| |
8853 | 8861 |
| |
8854 |
| - | |
| 8862 | + | |
| 8863 | + | |
8855 | 8864 |
| |
8856 | 8865 |
| |
8857 | 8866 |
| |
| |||
8939 | 8948 |
| |
8940 | 8949 |
| |
8941 | 8950 |
| |
8942 |
| - | |
| 8951 | + | |
8943 | 8952 |
| |
8944 | 8953 |
| |
8945 | 8954 |
| |
| |||
9105 | 9114 |
| |
9106 | 9115 |
| |
9107 | 9116 |
| |
9108 |
| - | |
| 9117 | + | |
| 9118 | + | |
9109 | 9119 |
| |
9110 | 9120 |
| |
9111 | 9121 |
| |
|
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
298 |
| - | |
| 298 | + | |
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| |||
636 | 636 |
| |
637 | 637 |
| |
638 | 638 |
| |
639 |
| - | |
640 |
| - | |
| 639 | + | |
| 640 | + | |
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
| |||
773 | 773 |
| |
774 | 774 |
| |
775 | 775 |
| |
776 |
| - | |
777 |
| - | |
| 776 | + | |
| 777 | + | |
778 | 778 |
| |
779 | 779 |
| |
780 | 780 |
| |
|
0 commit comments
Comments
(0)