- Notifications
You must be signed in to change notification settings - Fork28
Commit86ff085
committed
Don't require pg_class.dat to contain correct relnatts values.
Practically everybody who's ever added a column to one of the bootstrapcatalogs has been burnt by the need to update the relnatts field in theinitial pg_class data to match. Now that we use Perl scripts togenerate postgres.bki, we can have the machines take care of that,by filling the field during genbki.pl.While at it, use the BKI_DEFAULTS mechanism to eliminate repetitivespecifications of other column values in pg_class.dat, too. Theyweren't particularly a maintenance problem, but this way is prettier(certainly the spotty previous usage of BKI_DEFAULTS wasn't pretty).No catversion bump needed, since this doesn't actually change thecontents of postgres.bki.Per gripe from Justin Pryzby, though this is quite different fromhis originally proposed solution.Amit Langote, John Naylor, Tom LaneDiscussion:https://postgr.es/m/20200212182337.GZ1412@telsasoft.com1 parent317906f commit86ff085
File tree
3 files changed
+42
-66
lines changed- src
- backend/catalog
- include/catalog
3 files changed
+42
-66
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
187 | 196 |
| |
188 | 197 |
| |
189 | 198 |
| |
|
Lines changed: 5 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
| 17 | + | |
22 | 18 |
| |
23 | 19 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 20 | + | |
33 | 21 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 22 | + | |
43 | 23 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
| 24 | + | |
53 | 25 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 26 | + | |
63 | 27 |
| |
64 | 28 |
|
Lines changed: 28 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 |
| |
28 | 31 |
| |
29 | 32 |
| |
| |||
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
50 |
| - | |
| 53 | + | |
51 | 54 |
| |
52 | 55 |
| |
53 | 56 |
| |
54 |
| - | |
| 57 | + | |
55 | 58 |
| |
56 | 59 |
| |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 |
| - | |
| 63 | + | |
61 | 64 |
| |
62 | 65 |
| |
63 |
| - | |
| 66 | + | |
64 | 67 |
| |
65 | 68 |
| |
66 |
| - | |
| 69 | + | |
67 | 70 |
| |
68 | 71 |
| |
69 |
| - | |
| 72 | + | |
70 | 73 |
| |
71 | 74 |
| |
72 |
| - | |
| 75 | + | |
73 | 76 |
| |
74 | 77 |
| |
75 |
| - | |
| 78 | + | |
76 | 79 |
| |
77 | 80 |
| |
78 |
| - | |
| 81 | + | |
79 | 82 |
| |
80 | 83 |
| |
81 |
| - | |
| 84 | + | |
82 | 85 |
| |
83 | 86 |
| |
84 |
| - | |
| 87 | + | |
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
| |||
90 | 93 |
| |
91 | 94 |
| |
92 | 95 |
| |
93 |
| - | |
| 96 | + | |
94 | 97 |
| |
95 | 98 |
| |
96 |
| - | |
| 99 | + | |
97 | 100 |
| |
98 | 101 |
| |
99 |
| - | |
| 102 | + | |
100 | 103 |
| |
101 | 104 |
| |
102 |
| - | |
| 105 | + | |
103 | 106 |
| |
104 | 107 |
| |
105 |
| - | |
| 108 | + | |
106 | 109 |
| |
107 | 110 |
| |
108 |
| - | |
| 111 | + | |
109 | 112 |
| |
110 | 113 |
| |
111 |
| - | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 |
| - | |
| 117 | + | |
115 | 118 |
| |
116 | 119 |
| |
117 |
| - | |
| 120 | + | |
118 | 121 |
| |
119 | 122 |
| |
120 | 123 |
| |
121 | 124 |
| |
122 | 125 |
| |
123 |
| - | |
| 126 | + | |
124 | 127 |
| |
125 | 128 |
| |
126 |
| - | |
| 129 | + | |
127 | 130 |
| |
128 | 131 |
| |
129 | 132 |
| |
130 | 133 |
| |
131 |
| - | |
| 134 | + | |
132 | 135 |
| |
133 | 136 |
| |
134 |
| - | |
| 137 | + | |
135 | 138 |
| |
136 | 139 |
| |
137 |
| - | |
| 140 | + | |
138 | 141 |
| |
139 | 142 |
| |
140 | 143 |
| |
|
0 commit comments
Comments
(0)