forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c079d7
committed
Allow generalized expression syntax for partition bounds
Previously, only literals were allowed. This change allows generalexpressions, including functions calls, which are evaluated at thetime the DDL command is executed.Besides offering some more functionality, it simplifies the parserstructures and removes some inconsistencies in how the literals werehandled.Author: Kyotaro Horiguchi, Tom Lane, Amit LangoteReviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/9f88b5e0-6da2-5227-20d0-0d7012beaa1c@lab.ntt.co.jp/1 parente3565fd commit7c079d7
File tree
14 files changed
+314
-167
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- optimizer/util
- parser
- include
- optimizer
- parser
- utils
- test/regress
- expected
- sql
14 files changed
+314
-167
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
90 |
| - | |
91 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
|
Lines changed: 10 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 |
| - | |
417 |
| - | |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
422 | 423 |
| |
423 | 424 |
| |
424 | 425 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
830 | 830 |
| |
831 | 831 |
| |
832 | 832 |
| |
| 833 | + | |
833 | 834 |
| |
834 | 835 |
| |
835 | 836 |
| |
| |||
872 | 873 |
| |
873 | 874 |
| |
874 | 875 |
| |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
875 | 884 |
| |
876 | 885 |
| |
877 | 886 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 |
| - | |
154 |
| - | |
155 | 153 |
| |
156 | 154 |
| |
157 | 155 |
| |
| |||
5045 | 5043 |
| |
5046 | 5044 |
| |
5047 | 5045 |
| |
5048 |
| - | |
| 5046 | + | |
5049 | 5047 |
| |
5050 | 5048 |
| |
5051 | 5049 |
| |
|
Lines changed: 3 additions & 57 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
581 | 581 |
| |
582 | 582 |
| |
583 | 583 |
| |
584 |
| - | |
585 |
| - | |
| 584 | + | |
586 | 585 |
| |
587 | 586 |
| |
588 | 587 |
| |
| |||
2731 | 2730 |
| |
2732 | 2731 |
| |
2733 | 2732 |
| |
2734 |
| - | |
| 2733 | + | |
2735 | 2734 |
| |
2736 | 2735 |
| |
2737 | 2736 |
| |
| |||
2744 | 2743 |
| |
2745 | 2744 |
| |
2746 | 2745 |
| |
2747 |
| - | |
| 2746 | + | |
2748 | 2747 |
| |
2749 | 2748 |
| |
2750 | 2749 |
| |
| |||
2787 | 2786 |
| |
2788 | 2787 |
| |
2789 | 2788 |
| |
2790 |
| - | |
2791 |
| - | |
2792 |
| - | |
2793 |
| - | |
2794 |
| - | |
2795 |
| - | |
2796 |
| - | |
2797 |
| - | |
2798 |
| - | |
2799 |
| - | |
2800 |
| - | |
2801 |
| - | |
2802 |
| - | |
2803 |
| - | |
2804 |
| - | |
2805 |
| - | |
2806 |
| - | |
2807 |
| - | |
2808 |
| - | |
2809 |
| - | |
2810 |
| - | |
2811 |
| - | |
2812 |
| - | |
2813 |
| - | |
2814 |
| - | |
2815 |
| - | |
2816 |
| - | |
2817 |
| - | |
2818 |
| - | |
2819 |
| - | |
2820 |
| - | |
2821 |
| - | |
2822 |
| - | |
2823 |
| - | |
2824 |
| - | |
2825 |
| - | |
2826 |
| - | |
2827 |
| - | |
2828 |
| - | |
2829 |
| - | |
2830 |
| - | |
2831 |
| - | |
2832 |
| - | |
2833 |
| - | |
2834 |
| - | |
2835 |
| - | |
2836 |
| - | |
2837 |
| - | |
2838 |
| - | |
2839 |
| - | |
2840 |
| - | |
2841 |
| - | |
2842 |
| - | |
2843 | 2789 |
| |
2844 | 2790 |
| |
2845 | 2791 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
506 | 506 |
| |
507 | 507 |
| |
508 | 508 |
| |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
509 | 516 |
| |
510 | 517 |
| |
511 | 518 |
| |
| |||
904 | 911 |
| |
905 | 912 |
| |
906 | 913 |
| |
| 914 | + | |
| 915 | + | |
| 916 | + | |
907 | 917 |
| |
908 | 918 |
| |
909 | 919 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1843 | 1843 |
| |
1844 | 1844 |
| |
1845 | 1845 |
| |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1846 | 1849 |
| |
1847 | 1850 |
| |
1848 | 1851 |
| |
| |||
3474 | 3477 |
| |
3475 | 3478 |
| |
3476 | 3479 |
| |
| 3480 | + | |
| 3481 | + | |
3477 | 3482 |
| |
3478 | 3483 |
| |
3479 | 3484 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2364 | 2364 |
| |
2365 | 2365 |
| |
2366 | 2366 |
| |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2367 | 2370 |
| |
2368 | 2371 |
| |
2369 | 2372 |
| |
|
0 commit comments
Comments
(0)