forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2810396
committed
Fix up handling of nondeterministic collations with pattern_ops opclasses.
text_pattern_ops and its siblings can't be used with nondeterministiccollations, because they use the text_eq operator which will not behaveas bitwise equality if applied with a nondeterministic collation. Theinitial implementation of that restriction was to insert a run-time testin the related comparison functions, but that is inefficient, may throwmisleading errors, and will throw errors in some cases that would work.It seems sufficient to just prevent the combination during CREATE INDEX,so do that instead.Lacking any better way to identify the opclasses involved, we need tohard-wire tests for them, which requires hand-assigned values for theirOIDs, which forces a catversion bump because they previously had OIDsthat would be assigned automatically. That's slightly annoying in thev12 branch, but fortunately we're not at rc1 yet, so just do it.Back-patch to v12 where nondeterministic collations were added.In passing, run make reformat-dat-files, which found some unrelatedwhitespace issues (slightly different ones in HEAD and v12).Peter Eisentraut, with small corrections by meDiscussion:https://postgr.es/m/22566.1568675619@sss.pgh.pa.us1 parentdf4fbcd commit2810396
File tree
6 files changed
+66
-69
lines changed- src
- backend
- catalog
- utils/adt
- include/catalog
6 files changed
+66
-69
lines changedLines changed: 45 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
765 | 810 |
| |
766 | 811 |
| |
767 | 812 |
| |
|
Lines changed: 6 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1105 | 1105 |
| |
1106 | 1106 |
| |
1107 | 1107 |
| |
1108 |
| - | |
| 1108 | + | |
1109 | 1109 |
| |
1110 | 1110 |
| |
1111 | 1111 |
| |
1112 | 1112 |
| |
1113 | 1113 |
| |
1114 |
| - | |
1115 |
| - | |
1116 |
| - | |
1117 |
| - | |
1118 |
| - | |
1119 |
| - | |
1120 |
| - | |
1121 |
| - | |
1122 |
| - | |
1123 |
| - | |
1124 |
| - | |
1125 | 1114 |
| |
1126 | 1115 |
| |
1127 | 1116 |
| |
| |||
1144 | 1133 |
| |
1145 | 1134 |
| |
1146 | 1135 |
| |
1147 |
| - | |
| 1136 | + | |
1148 | 1137 |
| |
1149 | 1138 |
| |
1150 | 1139 |
| |
| |||
1160 | 1149 |
| |
1161 | 1150 |
| |
1162 | 1151 |
| |
1163 |
| - | |
| 1152 | + | |
1164 | 1153 |
| |
1165 | 1154 |
| |
1166 | 1155 |
| |
| |||
1176 | 1165 |
| |
1177 | 1166 |
| |
1178 | 1167 |
| |
1179 |
| - | |
| 1168 | + | |
1180 | 1169 |
| |
1181 | 1170 |
| |
1182 | 1171 |
| |
| |||
1192 | 1181 |
| |
1193 | 1182 |
| |
1194 | 1183 |
| |
1195 |
| - | |
| 1184 | + | |
1196 | 1185 |
| |
1197 | 1186 |
| |
1198 | 1187 |
| |
| |||
1208 | 1197 |
| |
1209 | 1198 |
| |
1210 | 1199 |
| |
1211 |
| - | |
| 1200 | + | |
1212 | 1201 |
| |
1213 | 1202 |
| |
1214 | 1203 |
| |
| |||
1221 | 1210 |
| |
1222 | 1211 |
| |
1223 | 1212 |
| |
1224 |
| - | |
1225 | 1213 |
| |
1226 | 1214 |
| |
1227 |
| - | |
1228 |
| - | |
1229 |
| - | |
1230 |
| - | |
1231 |
| - | |
1232 |
| - | |
1233 |
| - | |
1234 |
| - | |
1235 | 1215 |
| |
1236 | 1216 |
| |
1237 | 1217 |
| |
|
Lines changed: 6 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2996 | 2996 |
| |
2997 | 2997 |
| |
2998 | 2998 |
| |
2999 |
| - | |
| 2999 | + | |
3000 | 3000 |
| |
3001 | 3001 |
| |
3002 | 3002 |
| |
3003 | 3003 |
| |
3004 | 3004 |
| |
3005 |
| - | |
3006 |
| - | |
3007 |
| - | |
3008 |
| - | |
3009 |
| - | |
3010 |
| - | |
3011 |
| - | |
3012 |
| - | |
3013 |
| - | |
3014 |
| - | |
3015 |
| - | |
3016 |
| - | |
3017 |
| - | |
3018 |
| - | |
3019 |
| - | |
3020 |
| - | |
3021 |
| - | |
3022 |
| - | |
3023 |
| - | |
3024 |
| - | |
3025 |
| - | |
3026 |
| - | |
3027 | 3005 |
| |
3028 | 3006 |
| |
3029 | 3007 |
| |
| |||
3046 | 3024 |
| |
3047 | 3025 |
| |
3048 | 3026 |
| |
3049 |
| - | |
| 3027 | + | |
3050 | 3028 |
| |
3051 | 3029 |
| |
3052 | 3030 |
| |
| |||
3062 | 3040 |
| |
3063 | 3041 |
| |
3064 | 3042 |
| |
3065 |
| - | |
| 3043 | + | |
3066 | 3044 |
| |
3067 | 3045 |
| |
3068 | 3046 |
| |
| |||
3078 | 3056 |
| |
3079 | 3057 |
| |
3080 | 3058 |
| |
3081 |
| - | |
| 3059 | + | |
3082 | 3060 |
| |
3083 | 3061 |
| |
3084 | 3062 |
| |
| |||
3094 | 3072 |
| |
3095 | 3073 |
| |
3096 | 3074 |
| |
3097 |
| - | |
| 3075 | + | |
3098 | 3076 |
| |
3099 | 3077 |
| |
3100 | 3078 |
| |
| |||
3110 | 3088 |
| |
3111 | 3089 |
| |
3112 | 3090 |
| |
3113 |
| - | |
| 3091 | + | |
3114 | 3092 |
| |
3115 | 3093 |
| |
3116 | 3094 |
| |
| |||
3123 | 3101 |
| |
3124 | 3102 |
| |
3125 | 3103 |
| |
3126 |
| - | |
3127 | 3104 |
| |
3128 | 3105 |
| |
3129 |
| - | |
3130 |
| - | |
3131 |
| - | |
3132 |
| - | |
3133 |
| - | |
3134 |
| - | |
3135 |
| - | |
3136 |
| - | |
3137 | 3106 |
| |
3138 | 3107 |
| |
3139 | 3108 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
| 150 | + | |
150 | 151 |
| |
151 | 152 |
| |
152 |
| - | |
| 153 | + | |
| 154 | + | |
153 | 155 |
| |
154 | 156 |
| |
155 |
| - | |
| 157 | + | |
| 158 | + | |
156 | 159 |
| |
157 | 160 |
| |
158 | 161 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
663 |
| - | |
| 663 | + | |
664 | 664 |
| |
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
668 | 668 |
| |
669 |
| - | |
| 669 | + | |
670 | 670 |
| |
671 | 671 |
| |
672 | 672 |
| |
|
0 commit comments
Comments
(0)