forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfa66b6d
committed
Fix tests of pg_upgrade across different major versions
This fixes a set of issues that cause different breakages or annoyanceswhen using pg_upgrade's test.sh to do upgrades across different majorversions:- test.sh is completely broken when using v14 as new version because ofthe removal of testtablespace/ as Makefile rule. Older versions ofpg_regress don't support --make-tablespacedir, blocking the creation ofthe tablespace. In order to fix that, it is simple enough to createthose directories in the script itself, but only do that when an oldversion is involved. This fix is needed on HEAD and REL_14_STABLE.- The script would fail when using PG <= v11 as old version because ofWITH OIDS relations not supported in v12. In order to fix this, thissteals a method from the buildfarm that uses a DO block to change allthe relations marked as WITH OIDS, allowing pg_upgrade to pass. This ismore portable than using ALTER TABLE queries on the relations causingissues. This is fixed down to v12, and authored originally by AndrewDunstan.- Not using --extra-float-digits=0 with v11 as old version causesa lot of diffs in the dumps, making the whole unreadable. This getsonly done when using v11 as old version. This is fixed down to v12.The buildfarm code uses that already.Note that the addition of --wal-segsize and --allow-group-access breaksthe script when using v10 or older at initdb time as these got added in11. 10 would be EOL'd next year and nobody has complained about thoseproblems yet, so nothing is done about that. This means that thiscommit fixes upgrade tests using test.sh with v11 as minimum olderversion, up to HEAD, and that it is enough to apply this change down to12. The old and new dumps still generate diffs, still require manualchecks, and more could be done to reduce the noise, but this allows thetests to run with a rather minimal amount of them.I have tested this commit and test.sh with v11 as minimum across all thebranches where this is applied. Note that this commit has no impact onthe normal pg_upgrade test run with a simple "make check".Author: Justin Pryzby, Andrew Dunstan, Michael PaquierDiscussion:https://postgr.es/m/20201206180248.GI24052@telsasoft.comBackpatch-through: 121 parent390edee commitfa66b6d
1 file changed
+59
-7
lines changedLines changed: 59 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
107 | 108 |
| |
108 | 109 |
| |
109 | 110 |
| |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
110 | 119 |
| |
111 | 120 |
| |
112 | 121 |
| |
| |||
163 | 172 |
| |
164 | 173 |
| |
165 | 174 |
| |
| 175 | + | |
| 176 | + | |
| 177 | + | |
166 | 178 |
| |
167 | 179 |
| |
168 | 180 |
| |
169 |
| - | |
| 181 | + | |
| 182 | + | |
170 | 183 |
| |
171 | 184 |
| |
| 185 | + | |
172 | 186 |
| |
173 | 187 |
| |
174 | 188 |
| |
175 | 189 |
| |
176 | 190 |
| |
177 |
| - | |
178 |
| - | |
179 |
| - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
180 | 201 |
| |
181 | 202 |
| |
182 | 203 |
| |
183 | 204 |
| |
184 | 205 |
| |
185 | 206 |
| |
186 | 207 |
| |
| 208 | + | |
187 | 209 |
| |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
188 | 238 |
| |
189 | 239 |
| |
190 |
| - | |
| 240 | + | |
| 241 | + | |
191 | 242 |
| |
192 | 243 |
| |
193 | 244 |
| |
| |||
249 | 300 |
| |
250 | 301 |
| |
251 | 302 |
| |
252 |
| - | |
| 303 | + | |
| 304 | + | |
253 | 305 |
| |
254 | 306 |
| |
255 | 307 |
| |
|
0 commit comments
Comments
(0)