forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita0854f1
committed
Avoid parsing catalog data twice during BKI file construction.
In the wake of commit5602265, we were doing duplicate-OID detectionquite inefficiently, by invoking duplicate_oids which does all the sameparsing of catalog headers and .dat files as genbki.pl does. That addsunder half a second on modern machines, but quite a bit more on slowbuildfarm critters, so it seems worth avoiding. Let's just extendgenbki.pl a little so it can also detect duplicate OIDs, and removethe duplicate_oids call from the build process.(This also means that duplicate OID detection will happen duringWindows builds, which AFAICS it didn't before.)This makes the use-case for duplicate_oids a bit dubious, but it'spossible that people will still want to run that check without doinga whole build run, so let's keep that script.In passing, move down genbki.pl's creation of its temp output filesso that it doesn't happen until after we've done parsing and validationof the input. This avoids leaving a lot of clutter around after afailure.John Naylor and Tom LaneDiscussion:https://postgr.es/m/37D774E4-FE1F-437E-B3D2-593F314B7505@postgrespro.ru1 parentdd4cc9d commita0854f1
File tree
4 files changed
+60
-20
lines changed- doc/src/sgml
- src/backend/catalog
4 files changed
+60
-20
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 |
| - | |
386 |
| - | |
| 385 | + | |
| 386 | + | |
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
| 389 | + | |
| 390 | + | |
389 | 391 |
| |
390 | 392 |
| |
391 | 393 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
88 |
| - | |
| 87 | + | |
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
|
Lines changed: 55 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 | 60 |
| |
76 | 61 |
| |
77 | 62 |
| |
78 | 63 |
| |
79 | 64 |
| |
80 | 65 |
| |
| 66 | + | |
| 67 | + | |
81 | 68 |
| |
82 | 69 |
| |
83 | 70 |
| |
| |||
94 | 81 |
| |
95 | 82 |
| |
96 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 |
| - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 |
| |
102 | 109 |
| |
103 | 110 |
| |
| |||
108 | 115 |
| |
109 | 116 |
| |
110 | 117 |
| |
| 118 | + | |
| 119 | + | |
111 | 120 |
| |
112 | 121 |
| |
113 | 122 |
| |
| |||
116 | 125 |
| |
117 | 126 |
| |
118 | 127 |
| |
| 128 | + | |
119 | 129 |
| |
120 | 130 |
| |
121 | 131 |
| |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
122 | 146 |
| |
123 | 147 |
| |
124 | 148 |
| |
| |||
224 | 248 |
| |
225 | 249 |
| |
226 | 250 |
| |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
227 | 266 |
| |
228 | 267 |
| |
229 | 268 |
| |
|
0 commit comments
Comments
(0)