forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f0cfb4

Amit Kapila
Fix parallel operations that prevent oldest xmin from advancing.
While determining xid horizons, we skip over backends that are runningVacuum. We also ignore Create Index Concurrently, or Reindex Concurrentlyfor the purposes of computing Xmin for Vacuum. But we were not setting theflags corresponding to these operations when they are performed inparallel which was preventing Xid horizon from advancing.The optimization related to skipping Create Index Concurrently, or ReindexConcurrently operations was implemented in PG-14 but the fix is the samefor the Parallel Vacuum as well so back-patched till PG-13.Author: Masahiko SawadaReviewed-by: Amit KapilaBackpatch-through: 13Discussion:https://postgr.es/m/CAD21AoCLQqgM1sXh9BrDFq0uzd3RBFKi=Vfo6cjjKODm0Onr5w@mail.gmail.com1 parent0cd6d3b commit0f0cfb4
File tree
4 files changed
+35
-2
lines changed- src
- backend
- access
- heap
- nbtree
- storage/ipc
- include/storage
4 files changed
+35
-2
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4159 | 4159 |
| |
4160 | 4160 |
| |
4161 | 4161 |
| |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
4162 | 4168 |
| |
4163 | 4169 |
| |
4164 | 4170 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1808 | 1808 |
| |
1809 | 1809 |
| |
1810 | 1810 |
| |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
1811 | 1818 |
| |
1812 | 1819 |
| |
1813 | 1820 |
| |
|
Lines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2638 | 2638 |
| |
2639 | 2639 |
| |
2640 | 2640 |
| |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
2641 | 2645 |
| |
2642 | 2646 |
| |
2643 | 2647 |
| |
| |||
2649 | 2653 |
| |
2650 | 2654 |
| |
2651 | 2655 |
| |
2652 |
| - | |
2653 |
| - | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
2654 | 2660 |
| |
2655 | 2661 |
| |
2656 | 2662 |
| |
| |||
2663 | 2669 |
| |
2664 | 2670 |
| |
2665 | 2671 |
| |
| 2672 | + | |
2666 | 2673 |
| |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
2667 | 2680 |
| |
2668 | 2681 |
| |
2669 | 2682 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 |
| |
69 | 76 |
| |
70 | 77 |
| |
|
0 commit comments
Comments
(0)