forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd498e05
committed
Preserve relfilenode of pg_largeobject and its index across pg_upgrade.
Commit9a974cb did this for usertables, but pg_upgrade treats pg_largeobject as a user table, and soneeds the same treatment. Without this fix, if you rewrite thepg_largeobject table and then perform an upgrade with pg_upgrade, thetable will apparently be empty on the new cluster, while all of yourobjects will end up with an orphaned file.With this fix, instead of the old cluster's pg_largeobject files endingup orphaned, the original files fro the new cluster do. That's mostlyharmless because we expect the table to be empty, but we might wantto arrange to remove the as part of the upgrade. Since we're stilldebating the best way of doing that, I (rhaas) have decided to postponedealing with that problem and get the basic fix committed.Justin Pryzby, reviewed by Shruthi Gowda and by me.Discussion:http://postgr.es/m/20220701231413.GI13040@telsasoft.com1 parentbf1f4a3 commitd498e05
2 files changed
+24
-15
lines changedLines changed: 22 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3134 | 3134 |
| |
3135 | 3135 |
| |
3136 | 3136 |
| |
3137 |
| - | |
| 3137 | + | |
3138 | 3138 |
| |
3139 | 3139 |
| |
3140 | 3140 |
| |
3141 | 3141 |
| |
3142 | 3142 |
| |
3143 | 3143 |
| |
3144 | 3144 |
| |
| 3145 | + | |
| 3146 | + | |
3145 | 3147 |
| |
3146 | 3148 |
| |
3147 | 3149 |
| |
3148 | 3150 |
| |
3149 | 3151 |
| |
3150 | 3152 |
| |
3151 |
| - | |
| 3153 | + | |
3152 | 3154 |
| |
3153 |
| - | |
3154 |
| - | |
| 3155 | + | |
| 3156 | + | |
3155 | 3157 |
| |
3156 |
| - | |
| 3158 | + | |
3157 | 3159 |
| |
3158 |
| - | |
3159 |
| - | |
| 3160 | + | |
| 3161 | + | |
3160 | 3162 |
| |
3161 |
| - | |
| 3163 | + | |
3162 | 3164 |
| |
3163 | 3165 |
| |
3164 | 3166 |
| |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
3165 | 3179 |
| |
3166 |
| - | |
3167 |
| - | |
3168 |
| - | |
3169 |
| - | |
3170 |
| - | |
3171 |
| - | |
3172 |
| - | |
3173 | 3180 |
| |
3174 | 3181 |
| |
3175 | 3182 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
| 211 | + | |
| 212 | + | |
211 | 213 |
| |
212 | 214 |
| |
213 | 215 |
| |
|
0 commit comments
Comments
(0)