forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit12a53c7
committed
Fix pg_upgrade for oid removal.
pg_upgrade previously copied pg_largeobject_metadata over from the oldcluster. That doesn't work, because the table has oids before578b229. I missed that.As most pieces of metadata for large objects already were dumped asDDL (except for comments overwritten by pg_upgrade, due to the copy ofpg_largeobject_metadata) it seems reasonable to just also dump grantsfor large objects. If we ever consider this a relevant performanceproblem, we'd need to fix the rest of the already emitted DDLtoo.There's still an open discussion about whether we'll want to force aspecific ordering for the dumped objects, as currentlypg_largeobjects_metadata potentially has a different orderingbefore/after pg_upgrade, which can make automated testing a bitharder.Reported-By: Andrew DunstanAuthor: Andres FreundDiscussion:https://postgr.es/m/91a8a980-41bc-412b-fba2-2ba71a141c2b@2ndQuadrant.com1 parent70d7e50 commit12a53c7
File tree
4 files changed
+15
-62
lines changed- src/bin
- pg_dump
- t
- pg_upgrade
4 files changed
+15
-62
lines changedLines changed: 8 additions & 53 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2866 | 2866 |
| |
2867 | 2867 |
| |
2868 | 2868 |
| |
2869 |
| - | |
2870 |
| - | |
| 2869 | + | |
| 2870 | + | |
2871 | 2871 |
| |
2872 | 2872 |
| |
2873 | 2873 |
| |
| |||
2912 | 2912 |
| |
2913 | 2913 |
| |
2914 | 2914 |
| |
2915 |
| - | |
2916 |
| - | |
2917 |
| - | |
2918 |
| - | |
2919 |
| - | |
2920 |
| - | |
2921 |
| - | |
2922 |
| - | |
2923 |
| - | |
2924 |
| - | |
2925 |
| - | |
2926 |
| - | |
2927 |
| - | |
2928 |
| - | |
2929 |
| - | |
2930 |
| - | |
2931 |
| - | |
2932 |
| - | |
2933 |
| - | |
2934 |
| - | |
2935 |
| - | |
2936 |
| - | |
2937 |
| - | |
2938 |
| - | |
2939 |
| - | |
2940 |
| - | |
2941 |
| - | |
2942 |
| - | |
2943 |
| - | |
2944 |
| - | |
2945 |
| - | |
2946 |
| - | |
2947 |
| - | |
2948 |
| - | |
2949 |
| - | |
2950 |
| - | |
2951 |
| - | |
2952 |
| - | |
2953 |
| - | |
2954 |
| - | |
2955 |
| - | |
2956 | 2915 |
| |
2957 | 2916 |
| |
2958 | 2917 |
| |
| |||
3266 | 3225 |
| |
3267 | 3226 |
| |
3268 | 3227 |
| |
3269 |
| - | |
3270 |
| - | |
3271 |
| - | |
3272 |
| - | |
3273 |
| - | |
3274 |
| - | |
3275 |
| - | |
3276 |
| - | |
3277 |
| - | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3278 | 3233 |
| |
3279 | 3234 |
| |
3280 |
| - | |
| 3235 | + | |
3281 | 3236 |
| |
3282 | 3237 |
| |
3283 | 3238 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2791 | 2791 |
| |
2792 | 2792 |
| |
2793 | 2793 |
| |
| 2794 | + | |
2794 | 2795 |
| |
2795 | 2796 |
| |
2796 |
| - | |
2797 | 2797 |
| |
2798 | 2798 |
| |
2799 | 2799 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
444 |
| - | |
445 |
| - | |
| 444 | + | |
446 | 445 |
| |
447 | 446 |
| |
448 | 447 |
| |
| |||
458 | 457 |
| |
459 | 458 |
| |
460 | 459 |
| |
461 |
| - | |
462 |
| - | |
463 |
| - | |
464 |
| - | |
| 460 | + | |
| 461 | + | |
465 | 462 |
| |
466 | 463 |
| |
467 | 464 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
|
0 commit comments
Comments
(0)