forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4169850
committed
Trim ORDER BY/DISTINCT aggregate pathkeys in gather_grouping_paths
Similar tod8a2953, trim off any PathKeys which are for ORDER BY /DISTINCT aggregate functions from the PathKey List for the Gather Mergepaths created by gather_grouping_paths(). These additional PathKeys arenot valid to use after grouping has taken place as these PathKeys belongto columns which are inputs to an aggregate function and, therefore areunavailable after aggregation.Reported-by: Alexander LakhinDiscussion:https://postgr.es/m/cf63174c-8c89-3953-cb49-48f41f74941a@gmail.comBackpatch-through: 16, where1349d27 was added1 parent4665ceb commit4169850
1 file changed
+15
-4
lines changedLines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7320 | 7320 |
| |
7321 | 7321 |
| |
7322 | 7322 |
| |
| 7323 | + | |
| 7324 | + | |
| 7325 | + | |
| 7326 | + | |
| 7327 | + | |
| 7328 | + | |
| 7329 | + | |
| 7330 | + | |
| 7331 | + | |
| 7332 | + | |
| 7333 | + | |
7323 | 7334 |
| |
7324 | 7335 |
| |
7325 | 7336 |
| |
| |||
7334 | 7345 |
| |
7335 | 7346 |
| |
7336 | 7347 |
| |
7337 |
| - | |
| 7348 | + | |
7338 | 7349 |
| |
7339 | 7350 |
| |
7340 | 7351 |
| |
| |||
7360 | 7371 |
| |
7361 | 7372 |
| |
7362 | 7373 |
| |
7363 |
| - | |
| 7374 | + | |
7364 | 7375 |
| |
7365 | 7376 |
| |
7366 | 7377 |
| |
7367 | 7378 |
| |
7368 | 7379 |
| |
7369 |
| - | |
| 7380 | + | |
7370 | 7381 |
| |
7371 | 7382 |
| |
7372 | 7383 |
| |
| |||
7375 | 7386 |
| |
7376 | 7387 |
| |
7377 | 7388 |
| |
7378 |
| - | |
| 7389 | + | |
7379 | 7390 |
| |
7380 | 7391 |
| |
7381 | 7392 |
| |
|
0 commit comments
Comments
(0)