Commit d49936f
committed
Sort DO_SUBSCRIPTION_REL dump objects independent of OIDs.
Commit 0decd5e missed
DO_SUBSCRIPTION_REL, leading to assertion failures. In the unlikely use
case of diffing "pg_dump --binary-upgrade" output, spurious diffs were
possible. As part of fixing that, align the DumpableObject naming and
sort order with DO_PUBLICATION_REL. The overall effect of this commit
is to change sort order from (subname, srsubid) to (rel, subname).
Since DO_SUBSCRIPTION_REL is only for --binary-upgrade, accept that
larger-than-usual dump order change. Back-patch to v17, where commit
9a17be1 introduced DO_SUBSCRIPTION_REL.
Reported-by: vignesh C <vignesh21@gmail.com>
Author: vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/CALDaNm2x3rd7C0_HjUpJFbxpAqXgm=QtoKfkEWDVA8h+JFpa_w@mail.gmail.com
Backpatch-through: 171 parent 951b60f commit d49936f
File tree
3 files changed
+32
-15
lines changed- src/bin
- pg_dump
- pg_upgrade/t
3 files changed
+32
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5386 | 5386 | | |
5387 | 5387 | | |
5388 | 5388 | | |
5389 | | - | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
5390 | 5392 | | |
5391 | 5393 | | |
5392 | 5394 | | |
5393 | 5395 | | |
5394 | 5396 | | |
5395 | 5397 | | |
5396 | 5398 | | |
5397 | | - | |
5398 | | - | |
5399 | 5399 | | |
5400 | 5400 | | |
5401 | 5401 | | |
| |||
5423 | 5423 | | |
5424 | 5424 | | |
5425 | 5425 | | |
5426 | | - | |
| 5426 | + | |
5427 | 5427 | | |
5428 | 5428 | | |
5429 | 5429 | | |
| |||
5438 | 5438 | | |
5439 | 5439 | | |
5440 | 5440 | | |
5441 | | - | |
| 5441 | + | |
5442 | 5442 | | |
5443 | 5443 | | |
5444 | 5444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
457 | 468 | | |
458 | 469 | | |
459 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
256 | 258 | | |
257 | | - | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
266 | | - | |
| 269 | + | |
267 | 270 | | |
268 | | - | |
| 271 | + | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
| |||
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| 309 | + | |
| 310 | + | |
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
| |||
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
| |||
369 | 374 | | |
370 | 375 | | |
371 | 376 | | |
372 | | - | |
| 377 | + | |
| 378 | + | |
373 | 379 | | |
374 | | - | |
| 380 | + | |
375 | 381 | | |
376 | 382 | | |
377 | 383 | | |
| |||
0 commit comments