- Notifications
You must be signed in to change notification settings - Fork28
Commit1d3ce02
committed
pg_dump: Fix dumping of inherited generated columns
Generation expressions of generated columns are always inherited, sothere is no need to set them separately in child tables, and there isno syntax to do so either. The code previously used the code pathsfor the handling of default values, for which different rules apply;in particular it might want to set a default value explicitly for aninherited column. This resulted in unrestorable dumps. For generatedcolumns, just skip them in inherited tables.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://www.postgresql.org/message-id/flat/15830.1575468847%40sss.pgh.pa.us1 parent0fe8b1f commit1d3ce02
3 files changed
+102
-12
lines changedLines changed: 24 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
431 | 431 |
| |
432 | 432 |
| |
433 | 433 |
| |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 |
| - | |
439 |
| - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
440 | 450 |
| |
441 | 451 |
| |
442 | 452 |
| |
| |||
474 | 484 |
| |
475 | 485 |
| |
476 | 486 |
| |
| 487 | + | |
477 | 488 |
| |
478 | 489 |
| |
479 | 490 |
| |
480 | 491 |
| |
481 | 492 |
| |
482 | 493 |
| |
483 | 494 |
| |
| 495 | + | |
484 | 496 |
| |
485 | 497 |
| |
486 | 498 |
| |
| |||
492 | 504 |
| |
493 | 505 |
| |
494 | 506 |
| |
495 |
| - | |
| 507 | + | |
| 508 | + | |
496 | 509 |
| |
497 | 510 |
| |
498 | 511 |
| |
| |||
534 | 547 |
| |
535 | 548 |
| |
536 | 549 |
| |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
537 | 554 |
| |
538 | 555 |
| |
539 | 556 |
| |
|
Lines changed: 32 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8736 | 8736 |
| |
8737 | 8737 |
| |
8738 | 8738 |
| |
8739 |
| - | |
8740 |
| - | |
8741 |
| - | |
8742 |
| - | |
| 8739 | + | |
| 8740 | + | |
| 8741 | + | |
| 8742 | + | |
| 8743 | + | |
8743 | 8744 |
| |
8744 |
| - | |
| 8745 | + | |
8745 | 8746 |
| |
| 8747 | + | |
| 8748 | + | |
| 8749 | + | |
| 8750 | + | |
| 8751 | + | |
| 8752 | + | |
| 8753 | + | |
| 8754 | + | |
| 8755 | + | |
| 8756 | + | |
| 8757 | + | |
| 8758 | + | |
| 8759 | + | |
| 8760 | + | |
| 8761 | + | |
| 8762 | + | |
| 8763 | + | |
| 8764 | + | |
| 8765 | + | |
| 8766 | + | |
| 8767 | + | |
| 8768 | + | |
| 8769 | + | |
8746 | 8770 |
| |
8747 | 8771 |
| |
8748 | 8772 |
| |
| |||
8753 | 8777 |
| |
8754 | 8778 |
| |
8755 | 8779 |
| |
| 8780 | + | |
8756 | 8781 |
| |
| 8782 | + | |
| 8783 | + | |
8757 | 8784 |
| |
8758 | 8785 |
| |
8759 | 8786 |
| |
|
Lines changed: 46 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2487 | 2487 |
| |
2488 | 2488 |
| |
2489 | 2489 |
| |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
2490 | 2536 |
| |
2491 | 2537 |
| |
2492 | 2538 |
| |
|
0 commit comments
Comments
(0)