forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a4c0e3
committed
Dump ALTER TABLE ... ATTACH PARTITION as a separate ArchiveEntry.
Previously, we emitted the ATTACH PARTITION command as part ofthe child table's ArchiveEntry. This was a poor choice since itcomplicates restoring the partition as a standalone table; you haveto ignore the error from the ATTACH, which isn't even an option whenrestoring direct-to-database with pg_restore. (pg_restore will issuethe whole ArchiveEntry as one PQexec, so that any error rolls backthe table creation as well.) Hence, separate it out as its ownArchiveEntry, as indeed we already did for index ATTACH PARTITIONcommands.Justin PryzbyDiscussion:https://postgr.es/m/20201023052940.GE9241@telsasoft.com1 parentd5ab79d commit9a4c0e3
4 files changed
+109
-24
lines changedLines changed: 38 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
261 | 261 |
| |
262 | 262 |
| |
263 | 263 |
| |
264 |
| - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
265 | 267 |
| |
266 | 268 |
| |
267 | 269 |
| |
| |||
320 | 322 |
| |
321 | 323 |
| |
322 | 324 |
| |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
323 | 359 |
| |
324 | 360 |
| |
325 | 361 |
| |
| |||
548 | 584 |
| |
549 | 585 |
| |
550 | 586 |
| |
| 587 | + | |
551 | 588 |
| |
552 | 589 |
| |
553 | 590 |
| |
|
Lines changed: 55 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
| 205 | + | |
205 | 206 |
| |
206 | 207 |
| |
207 | 208 |
| |
| |||
10176 | 10177 |
| |
10177 | 10178 |
| |
10178 | 10179 |
| |
| 10180 | + | |
| 10181 | + | |
| 10182 | + | |
10179 | 10183 |
| |
10180 | 10184 |
| |
10181 | 10185 |
| |
| |||
11183 | 11187 |
| |
11184 | 11188 |
| |
11185 | 11189 |
| |
11186 |
| - | |
| 11190 | + | |
11187 | 11191 |
| |
11188 | 11192 |
| |
11189 | 11193 |
| |
| |||
16133 | 16137 |
| |
16134 | 16138 |
| |
16135 | 16139 |
| |
16136 |
| - | |
16137 |
| - | |
16138 |
| - | |
16139 |
| - | |
16140 |
| - | |
16141 |
| - | |
16142 |
| - | |
16143 |
| - | |
16144 |
| - | |
16145 |
| - | |
16146 |
| - | |
16147 |
| - | |
16148 |
| - | |
16149 |
| - | |
16150 |
| - | |
16151 |
| - | |
16152 |
| - | |
16153 |
| - | |
16154 |
| - | |
16155 |
| - | |
16156 |
| - | |
16157 | 16140 |
| |
16158 | 16141 |
| |
16159 | 16142 |
| |
| |||
16383 | 16366 |
| |
16384 | 16367 |
| |
16385 | 16368 |
| |
| 16369 | + | |
| 16370 | + | |
| 16371 | + | |
| 16372 | + | |
| 16373 | + | |
| 16374 | + | |
| 16375 | + | |
| 16376 | + | |
| 16377 | + | |
| 16378 | + | |
| 16379 | + | |
| 16380 | + | |
| 16381 | + | |
| 16382 | + | |
| 16383 | + | |
| 16384 | + | |
| 16385 | + | |
| 16386 | + | |
| 16387 | + | |
| 16388 | + | |
| 16389 | + | |
| 16390 | + | |
| 16391 | + | |
| 16392 | + | |
| 16393 | + | |
| 16394 | + | |
| 16395 | + | |
| 16396 | + | |
| 16397 | + | |
| 16398 | + | |
| 16399 | + | |
| 16400 | + | |
| 16401 | + | |
| 16402 | + | |
| 16403 | + | |
| 16404 | + | |
| 16405 | + | |
| 16406 | + | |
| 16407 | + | |
| 16408 | + | |
| 16409 | + | |
| 16410 | + | |
| 16411 | + | |
| 16412 | + | |
| 16413 | + | |
| 16414 | + | |
| 16415 | + | |
| 16416 | + | |
| 16417 | + | |
16386 | 16418 |
| |
16387 | 16419 |
| |
16388 | 16420 |
| |
| |||
18344 | 18376 |
| |
18345 | 18377 |
| |
18346 | 18378 |
| |
| 18379 | + | |
18347 | 18380 |
| |
18348 | 18381 |
| |
18349 | 18382 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
338 | 339 |
| |
339 | 340 |
| |
340 | 341 |
| |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
341 | 349 |
| |
342 | 350 |
| |
343 | 351 |
| |
| |||
367 | 375 |
| |
368 | 376 |
| |
369 | 377 |
| |
370 |
| - | |
| 378 | + | |
371 | 379 |
| |
372 | 380 |
| |
373 | 381 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
| |||
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| 107 | + | |
106 | 108 |
| |
107 | 109 |
| |
108 | 110 |
| |
| |||
1324 | 1326 |
| |
1325 | 1327 |
| |
1326 | 1328 |
| |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1327 | 1334 |
| |
1328 | 1335 |
| |
1329 | 1336 |
| |
|
0 commit comments
Comments
(0)