- Notifications
You must be signed in to change notification settings - Fork5
Commitb40776d
committed
Have CLUSTER advance the table's relfrozenxid. The new frozen point is the
FreezeXid introduced in a recent commit, so there isn't any data loss in thisapproach.Doing it causes ALTER TABLE (or rather, the forms of it that cause a full tablerewrite) to be affected as well. In this case, the frozen point is RecentXmin,because after the rewrite all the tuples are relabeled with the rewritingtransaction's Xid.TOAST tables are fixed automatically as well, as fallout of the way they werealready being handled in the respective code paths.With this patch, there is no longer need to VACUUM tables for Xid wraparoundpurposes that have been cleaned up via TRUNCATE or CLUSTER.1 parent2f1bf82 commitb40776d
File tree
3 files changed
+32
-12
lines changed- src
- backend/commands
- include/commands
3 files changed
+32
-12
lines changedLines changed: 22 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| |||
513 | 513 |
| |
514 | 514 |
| |
515 | 515 |
| |
| 516 | + | |
516 | 517 |
| |
517 | 518 |
| |
518 | 519 |
| |
| |||
539 | 540 |
| |
540 | 541 |
| |
541 | 542 |
| |
542 |
| - | |
| 543 | + | |
543 | 544 |
| |
544 | 545 |
| |
545 | 546 |
| |
546 | 547 |
| |
547 | 548 |
| |
548 |
| - | |
| 549 | + | |
549 | 550 |
| |
550 | 551 |
| |
551 | 552 |
| |
| |||
641 | 642 |
| |
642 | 643 |
| |
643 | 644 |
| |
644 |
| - | |
| 645 | + | |
| 646 | + | |
645 | 647 |
| |
646 |
| - | |
| 648 | + | |
647 | 649 |
| |
648 | 650 |
| |
649 | 651 |
| |
| |||
816 | 818 |
| |
817 | 819 |
| |
818 | 820 |
| |
| 821 | + | |
| 822 | + | |
819 | 823 |
| |
820 | 824 |
| |
821 | 825 |
| |
| |||
826 | 830 |
| |
827 | 831 |
| |
828 | 832 |
| |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
829 | 840 |
| |
830 | 841 |
| |
831 |
| - | |
| 842 | + | |
832 | 843 |
| |
833 | 844 |
| |
834 | 845 |
| |
| |||
872 | 883 |
| |
873 | 884 |
| |
874 | 885 |
| |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
875 | 890 |
| |
876 | 891 |
| |
877 | 892 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2285 | 2285 |
| |
2286 | 2286 |
| |
2287 | 2287 |
| |
2288 |
| - | |
2289 |
| - | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2290 | 2295 |
| |
2291 | 2296 |
| |
2292 | 2297 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
|
0 commit comments
Comments
(0)