- Notifications
You must be signed in to change notification settings - Fork5
Commit3f0e808
committed
Introduce the concept of relation forks. An smgr relation can now consist
of multiple forks, and each fork can be created and grown separately.The bulk of this patch is about changing the smgr API to include an extraForkNumber argument in every smgr function. Also, smgrscheduleunlink andsmgrdounlink no longer implicitly call smgrclose, because other forks mightstill exist after unlinking one. The callers of those functions have beenmodified to call smgrclose instead.This patch in itself doesn't have any user-visible effect, but provides theinfrastructure needed for upcoming patches. The additional forks envisionedare a rewritten FSM implementation that doesn't rely on a fixed-size sharedmemory block, and a visibility map to allow skipping portions of a table inVACUUM that have no dead tuples.1 parenteca1388 commit3f0e808
File tree
31 files changed
+733
-446
lines changed- src
- backend
- access
- hash
- heap
- nbtree
- transam
- catalog
- commands
- postmaster
- rewrite
- storage
- buffer
- smgr
- utils/adt
- include
- access
- catalog
- postmaster
- storage
31 files changed
+733
-446
lines changedLines changed: 4 additions & 4 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 |
| |
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
| 161 | + | |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
| 206 | + | |
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
| |||
737 | 737 |
| |
738 | 738 |
| |
739 | 739 |
| |
740 |
| - | |
| 740 | + | |
741 | 741 |
| |
742 | 742 |
| |
743 | 743 |
| |
|
Lines changed: 6 additions & 4 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 |
| |
| |||
3906 | 3906 |
| |
3907 | 3907 |
| |
3908 | 3908 |
| |
3909 |
| - | |
| 3909 | + | |
| 3910 | + | |
3910 | 3911 |
| |
3911 | 3912 |
| |
3912 | 3913 |
| |
| |||
3916 | 3917 |
| |
3917 | 3918 |
| |
3918 | 3919 |
| |
| 3920 | + | |
3919 | 3921 |
| |
3920 | 3922 |
| |
3921 | 3923 |
| |
| |||
4714 | 4716 |
| |
4715 | 4717 |
| |
4716 | 4718 |
| |
4717 |
| - | |
| 4719 | + | |
4718 | 4720 |
| |
4719 | 4721 |
| |
4720 | 4722 |
| |
| |||
4723 | 4725 |
| |
4724 | 4726 |
| |
4725 | 4727 |
| |
4726 |
| - | |
| 4728 | + | |
4727 | 4729 |
| |
4728 | 4730 |
| |
4729 | 4731 |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
| 99 | + | |
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| |||
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
| 273 | + | |
273 | 274 |
| |
274 | 275 |
| |
275 | 276 |
| |
276 |
| - | |
| 277 | + | |
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| |||
606 | 607 |
| |
607 | 608 |
| |
608 | 609 |
| |
| 610 | + | |
609 | 611 |
| |
610 | 612 |
| |
611 | 613 |
| |
| |||
616 | 618 |
| |
617 | 619 |
| |
618 | 620 |
| |
619 |
| - | |
620 |
| - | |
| 621 | + | |
| 622 | + | |
621 | 623 |
| |
622 | 624 |
| |
623 | 625 |
| |
|
Lines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| |||
267 | 267 |
| |
268 | 268 |
| |
269 | 269 |
| |
270 |
| - | |
| 270 | + | |
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
289 |
| - | |
| 289 | + | |
| 290 | + | |
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
| |||
299 | 300 |
| |
300 | 301 |
| |
301 | 302 |
| |
302 |
| - | |
| 303 | + | |
| 304 | + | |
303 | 305 |
| |
304 | 306 |
| |
305 | 307 |
| |
306 | 308 |
| |
307 | 309 |
| |
308 |
| - | |
| 310 | + | |
| 311 | + | |
309 | 312 |
| |
310 | 313 |
| |
311 | 314 |
| |
| |||
809 | 812 |
| |
810 | 813 |
| |
811 | 814 |
| |
812 |
| - | |
| 815 | + | |
813 | 816 |
| |
814 | 817 |
|
Lines changed: 31 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
144 |
| - | |
| 144 | + | |
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
| |||
694 | 694 |
| |
695 | 695 |
| |
696 | 696 |
| |
697 |
| - | |
698 |
| - | |
| 697 | + | |
| 698 | + | |
699 | 699 |
| |
700 | 700 |
| |
701 | 701 |
| |
| |||
793 | 793 |
| |
794 | 794 |
| |
795 | 795 |
| |
796 |
| - | |
797 |
| - | |
| 796 | + | |
| 797 | + | |
798 | 798 |
| |
799 | 799 |
| |
800 | 800 |
| |
| |||
832 | 832 |
| |
833 | 833 |
| |
834 | 834 |
| |
835 |
| - | |
| 835 | + | |
836 | 836 |
| |
837 | 837 |
| |
838 | 838 |
| |
839 | 839 |
| |
840 |
| - | |
| 840 | + | |
841 | 841 |
| |
842 | 842 |
| |
843 | 843 |
| |
| |||
1140 | 1140 |
| |
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 |
| - | |
1144 |
| - | |
| 1143 | + | |
| 1144 | + | |
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 | 1147 |
| |
| |||
1169 | 1169 |
| |
1170 | 1170 |
| |
1171 | 1171 |
| |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1176 | 1176 |
| |
1177 | 1177 |
| |
1178 | 1178 |
| |
| |||
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 | 1217 |
| |
1218 |
| - | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1219 | 1223 |
| |
1220 | 1224 |
| |
1221 | 1225 |
| |
1222 | 1226 |
| |
1223 |
| - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1224 | 1232 |
| |
1225 | 1233 |
| |
1226 | 1234 |
| |
| |||
1631 | 1639 |
| |
1632 | 1640 |
| |
1633 | 1641 |
| |
1634 |
| - | |
1635 |
| - | |
| 1642 | + | |
| 1643 | + | |
1636 | 1644 |
| |
1637 | 1645 |
| |
1638 | 1646 |
| |
| |||
1685 | 1693 |
| |
1686 | 1694 |
| |
1687 | 1695 |
| |
1688 |
| - | |
| 1696 | + | |
1689 | 1697 |
| |
1690 | 1698 |
| |
1691 | 1699 |
| |
| |||
1710 | 1718 |
| |
1711 | 1719 |
| |
1712 | 1720 |
| |
1713 |
| - | |
| 1721 | + | |
1714 | 1722 |
| |
1715 | 1723 |
| |
1716 | 1724 |
| |
| |||
1760 | 1768 |
| |
1761 | 1769 |
| |
1762 | 1770 |
| |
1763 |
| - | |
| 1771 | + | |
1764 | 1772 |
| |
1765 | 1773 |
| |
1766 | 1774 |
| |
| |||
1790 | 1798 |
| |
1791 | 1799 |
| |
1792 | 1800 |
| |
1793 |
| - | |
| 1801 | + | |
1794 | 1802 |
| |
1795 | 1803 |
| |
1796 | 1804 |
| |
|
0 commit comments
Comments
(0)