forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita4390ab
committed
Reduce the range of OIDs reserved for genbki.pl.
Commitab59610 increased FirstBootstrapObjectId from 12000 to 13000,but we've had some push-back about that. It's worrisome to reduce thedaylight between there and FirstNormalObjectId, because the number ofOIDs consumed during initdb for collation objects is hard to predict.We can improve the situation by abandoning the assumption that theseOIDs must be globally unique. It should be sufficient for them to beunique per-catalog. (Any code that's unhappy about that is brokenanyway, since no more than per-catalog uniqueness can be guaranteedonce the OID counter wraps around.) With that change, the largest OIDassigned during genbki.pl (starting from a base of 10000) is a bitunder 11000. This allows reverting FirstBootstrapObjectId to 12000with reasonable confidence that that will be sufficient for many yearsto come.We are not, at this time, abandoning the expectation thathand-assigned OIDs (below 10000) are globally unique. Someday that'lllikely be necessary, but the need seems years away still.This is late for v14, but it seems worth doing it now so thatdownstream software doesn't have to deal with the consequences ofa change in FirstBootstrapObjectId. In any case, we alreadybought into forcing an initdb for beta2, so another catversionbump won't hurt.Discussion:https://postgr.es/m/1665197.1622065382@sss.pgh.pa.us1 parente6241d8 commita4390ab
File tree
4 files changed
+35
-18
lines changed- doc/src/sgml
- src
- backend/catalog
- include
- access
- catalog
4 files changed
+35
-18
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
421 |
| - | |
| 421 | + | |
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
425 |
| - | |
| 425 | + | |
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
|
Lines changed: 24 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
| 170 | + | |
171 | 171 |
| |
| 172 | + | |
172 | 173 |
| |
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
176 | 177 |
| |
177 | 178 |
| |
178 |
| - | |
| 179 | + | |
| 180 | + | |
179 | 181 |
| |
180 | 182 |
| |
181 | 183 |
| |
| |||
563 | 565 |
| |
564 | 566 |
| |
565 | 567 |
| |
566 |
| - | |
567 |
| - | |
| 568 | + | |
568 | 569 |
| |
569 | 570 |
| |
570 | 571 |
| |
| |||
669 | 670 |
| |
670 | 671 |
| |
671 | 672 |
| |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 | 673 |
| |
678 | 674 |
| |
679 | 675 |
| |
| |||
1079 | 1075 |
| |
1080 | 1076 |
| |
1081 | 1077 |
| |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1082 | 1097 |
| |
1083 | 1098 |
| |
1084 | 1099 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 |
| - | |
| 164 | + | |
165 | 165 |
| |
166 |
| - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 |
| |
168 |
| - | |
169 |
| - | |
| 170 | + | |
| 171 | + | |
170 | 172 |
| |
171 | 173 |
| |
172 | 174 |
| |
173 | 175 |
| |
174 | 176 |
| |
175 |
| - | |
| 177 | + | |
176 | 178 |
| |
177 | 179 |
| |
178 | 180 |
| |
| |||
186 | 188 |
| |
187 | 189 |
| |
188 | 190 |
| |
189 |
| - | |
| 191 | + | |
190 | 192 |
| |
191 | 193 |
| |
192 | 194 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
0 commit comments
Comments
(0)