- Notifications
You must be signed in to change notification settings - Fork28
Commitb1752c3
committed
Fix typcache's failure to treat ranges as container types.
Like the similar logic for arrays and records, it's necessary to examinethe range's subtype to decide whether the range type can support hashing.We can omit checking the subtype for btree-defined operations, though,since range subtypes are required to have those operations. (Possiblythat simplification for btree cases led us to overlook that it doesnot apply for hash cases.)This is only an issue if the subtype lacks hash support, which is nottrue of any built-in range type, but it's easy to demonstrate a problemwith a range type over, eg, money: you can get a "could not identifya hash function" failure when the planner is misled into thinking thathash join or aggregation would work.This was born broken, so back-patch to all supported branches.1 parent2ac5988 commitb1752c3
File tree
3 files changed
+74
-0
lines changed- src
- backend/utils/cache
- test/regress
- expected
- sql
3 files changed
+74
-0
lines changedLines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| 171 | + | |
| 172 | + | |
171 | 173 |
| |
172 | 174 |
| |
173 | 175 |
| |
| |||
481 | 483 |
| |
482 | 484 |
| |
483 | 485 |
| |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
484 | 493 |
| |
485 | 494 |
| |
486 | 495 |
| |
| |||
1113 | 1122 |
| |
1114 | 1123 |
| |
1115 | 1124 |
| |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1116 | 1129 |
| |
1117 | 1130 |
| |
1118 | 1131 |
| |
| |||
1183 | 1196 |
| |
1184 | 1197 |
| |
1185 | 1198 |
| |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1186 | 1236 |
| |
1187 | 1237 |
| |
1188 | 1238 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1354 | 1354 |
| |
1355 | 1355 |
| |
1356 | 1356 |
| |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
1357 | 1369 |
| |
1358 | 1370 |
| |
1359 | 1371 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
464 | 476 |
| |
465 | 477 |
| |
466 | 478 |
| |
|
0 commit comments
Comments
(0)