Commit 2dfa3fe
committed
Remove complaints about COLLATE clauses in partition bound values.
transformPartitionBoundValue went out of its way to do the wrong
thing: there is no reason to complain about a non-matching COLLATE
clause in a partition boundary expression. We're coercing the
bound expression to the target column type as though by an
implicit assignment, and the rules for implicit assignment say
that collations can be implicitly converted.
What we *do* need to do, and the code is not doing, is apply
assign_expr_collations() to the bound expression. While this is
merely a definition disagreement, that is a bug that needs to be
back-patched, so I'll commit it separately.
Discussion: https://postgr.es/m/CAJV4CdrZ5mKuaEsRSbLf2URQ3h6iMtKD=hik8MaF5WwdmC9uZw@mail.gmail.com1 parent 0a87ddf commit 2dfa3fe
File tree
3 files changed
+21
-73
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+21
-73
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4183 | 4183 | | |
4184 | 4184 | | |
4185 | 4185 | | |
4186 | | - | |
4187 | | - | |
4188 | | - | |
4189 | | - | |
4190 | | - | |
4191 | | - | |
4192 | | - | |
4193 | | - | |
4194 | | - | |
4195 | | - | |
4196 | | - | |
4197 | | - | |
4198 | | - | |
4199 | | - | |
4200 | | - | |
4201 | | - | |
4202 | | - | |
4203 | | - | |
4204 | | - | |
4205 | | - | |
4206 | | - | |
4207 | | - | |
4208 | | - | |
4209 | | - | |
4210 | | - | |
4211 | | - | |
4212 | | - | |
4213 | | - | |
4214 | | - | |
4215 | | - | |
4216 | | - | |
4217 | | - | |
4218 | | - | |
4219 | | - | |
4220 | | - | |
4221 | | - | |
4222 | | - | |
4223 | | - | |
4224 | | - | |
4225 | | - | |
4226 | | - | |
4227 | | - | |
4228 | | - | |
4229 | | - | |
4230 | 4186 | | |
4231 | 4187 | | |
4232 | 4188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
656 | | - | |
657 | 655 | | |
658 | 656 | | |
659 | 657 | | |
| |||
1026 | 1024 | | |
1027 | 1025 | | |
1028 | 1026 | | |
1029 | | - | |
1030 | | - | |
| 1027 | + | |
| 1028 | + | |
1031 | 1029 | | |
1032 | | - | |
| 1030 | + | |
1033 | 1031 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | 1032 | | |
1040 | 1033 | | |
1041 | | - | |
1042 | | - | |
| 1034 | + | |
1043 | 1035 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | 1036 | | |
1050 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1051 | 1049 | | |
1052 | 1050 | | |
1053 | 1051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | 552 | | |
554 | 553 | | |
555 | 554 | | |
| |||
813 | 812 | | |
814 | 813 | | |
815 | 814 | | |
816 | | - | |
817 | | - | |
| 815 | + | |
| 816 | + | |
818 | 817 | | |
819 | 818 | | |
820 | | - | |
| 819 | + | |
821 | 820 | | |
822 | 821 | | |
823 | | - | |
824 | | - | |
825 | 822 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
| 823 | + | |
830 | 824 | | |
831 | | - | |
832 | | - | |
833 | 825 | | |
834 | 826 | | |
835 | 827 | | |
| 828 | + | |
| 829 | + | |
836 | 830 | | |
837 | 831 | | |
838 | 832 | | |
| |||
0 commit comments