forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4df58f7
committed
Fix handling of partition bounds for boolean partitioning columns.
Previously, you could partition by a boolean column as long as youspelled the bound values as string literals, for instance FOR VALUESIN ('t'). The trouble with this is that ruleutils.c printed that asFOR VALUES IN (TRUE), which is reasonable syntax but wasn't accepted bythe grammar. That results in dump-and-reload failures for such cases.Apply a minimal fix that just causes TRUE and FALSE to be converted tostrings 'true' and 'false'. This is pretty grotty, but it's too late fora more principled fix in v11 (to say nothing of v10). We should revisitthe whole issue of how partition bound values are parsed for v12.Amit LangoteDiscussion:https://postgr.es/m/e05c5162-1103-7e37-d1ab-6de3e0afaf70@lab.ntt.co.jp1 parentdf04402 commit4df58f7
File tree
5 files changed
+29
-6
lines changed- doc/src/sgml/ref
- src
- backend/parser
- test/regress
- expected
- sql
5 files changed
+29
-6
lines changedLines changed: 3 additions & 3 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 |
| |
|
Lines 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: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2798 | 2798 |
| |
2799 | 2799 |
| |
2800 | 2800 |
| |
| 2801 | + | |
| 2802 | + | |
2801 | 2803 |
| |
2802 | 2804 |
| |
2803 | 2805 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
885 | 885 |
| |
886 | 886 |
| |
887 | 887 |
| |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + |
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + |
0 commit comments
Comments
(0)