- Notifications
You must be signed in to change notification settings - Fork5
Commit5e3c09a
committed
Coerce unknown-literal-constant default values to the column type during
CREATE TABLE (or ALTER TABLE SET DEFAULT), rather than postponing it tothe time that the default is inserted into an INSERT command by therewriter. This reverses an old decision that was intended to make theworld safe for writingf1 timestamp default 'now'but in fact merely made the failure modes subtle rather than obvious.Per recent trouble report and followup discussion.initdb forced since there is a chance that stored default expressionswill change.1 parentf353f8e commit5e3c09a
File tree
3 files changed
+21
-29
lines changed- src
- backend
- catalog
- rewrite
- include/catalog
3 files changed
+21
-29
lines changedLines changed: 13 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1724 | 1724 |
| |
1725 | 1725 |
| |
1726 | 1726 |
| |
1727 |
| - | |
1728 |
| - | |
1729 |
| - | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1730 | 1730 |
| |
1731 | 1731 |
| |
1732 | 1732 |
| |
| |||
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 | 1775 |
| |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 |
| - | |
1780 |
| - | |
1781 |
| - | |
1782 |
| - | |
1783 |
| - | |
1784 |
| - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1785 | 1779 |
| |
1786 | 1780 |
| |
1787 | 1781 |
| |
1788 | 1782 |
| |
1789 | 1783 |
| |
1790 |
| - | |
1791 |
| - | |
1792 |
| - | |
1793 |
| - | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
1794 | 1789 |
| |
1795 | 1790 |
| |
1796 | 1791 |
| |
| |||
1801 | 1796 |
| |
1802 | 1797 |
| |
1803 | 1798 |
| |
1804 |
| - | |
| 1799 | + | |
1805 | 1800 |
| |
1806 | 1801 |
| |
1807 | 1802 |
| |
|
Lines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
545 | 546 |
| |
546 | 547 |
| |
547 | 548 |
| |
| |||
550 | 551 |
| |
551 | 552 |
| |
552 | 553 |
| |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 | 554 |
| |
558 | 555 |
| |
559 | 556 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
0 commit comments
Comments
(0)