forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf21c46
committed
Repair crash with unsortable grouping sets.
If there were multiple grouping sets, none of them empty, all of whichwere unsortable, then an oversight in consider_groupingsets_paths ledto a null pointer dereference. Fix, and add a regression test for thiscase.Per report from Dang Minh Huong, though I didn't use their patch.Backpatch to 10.x where hashed grouping sets were added.1 parent5b1b728 commitcf21c46
File tree
3 files changed
+39
-1
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+39
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4200 | 4200 | | |
4201 | 4201 | | |
4202 | 4202 | | |
4203 | | - | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
4204 | 4225 | | |
4205 | 4226 | | |
4206 | 4227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1021 | 1033 | | |
1022 | 1034 | | |
1023 | 1035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
0 commit comments
Comments
(0)