forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit013c1f6
committed
nbtree: Pass down MAXALIGN()'d itemsz for new item.
Refactor nbtinsert.c so that the final itemsz of each new non-pivottuple (the MAXALIGN()'d size) is determined once. Most of the functionsused by leaf page inserts used the insertstate.itemsz value already.This commit makes everything use insertstate.itemsz as standardpractice. The goal is to decouple tuple size from "effective" tuplesize. Making this distinction isn't truly necessary right now, but thatmight change in the future.Also explain why we consistently apply MAXALIGN() to get an effectiveindex tuple size. This was rather unclear, in part because it isn'tactually strictly necessary right now.1 parentfc34b0d commit013c1f6
1 file changed
+17
-10
lines changedLines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
118 | 119 |
| |
119 | 120 |
| |
120 | 121 |
| |
121 |
| - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
122 | 132 |
| |
123 | 133 |
| |
124 |
| - | |
125 | 134 |
| |
126 | 135 |
| |
127 | 136 |
| |
| |||
299 | 308 |
| |
300 | 309 |
| |
301 | 310 |
| |
302 |
| - | |
| 311 | + | |
| 312 | + | |
303 | 313 |
| |
304 | 314 |
| |
305 | 315 |
| |
| |||
1058 | 1068 |
| |
1059 | 1069 |
| |
1060 | 1070 |
| |
| 1071 | + | |
1061 | 1072 |
| |
1062 | 1073 |
| |
1063 | 1074 |
| |
1064 | 1075 |
| |
1065 | 1076 |
| |
1066 | 1077 |
| |
1067 |
| - | |
1068 | 1078 |
| |
1069 | 1079 |
| |
1070 | 1080 |
| |
| |||
1082 | 1092 |
| |
1083 | 1093 |
| |
1084 | 1094 |
| |
| 1095 | + | |
1085 | 1096 |
| |
1086 | 1097 |
| |
1087 | 1098 |
| |
| |||
1096 | 1107 |
| |
1097 | 1108 |
| |
1098 | 1109 |
| |
1099 |
| - | |
1100 |
| - | |
1101 |
| - | |
1102 |
| - | |
1103 | 1110 |
| |
1104 | 1111 |
| |
1105 | 1112 |
| |
| |||
2103 | 2110 |
| |
2104 | 2111 |
| |
2105 | 2112 |
| |
2106 |
| - | |
2107 |
| - | |
| 2113 | + | |
| 2114 | + | |
2108 | 2115 |
| |
2109 | 2116 |
| |
2110 | 2117 |
| |
|
0 commit comments
Comments
(0)