forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4e1ff2a
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 parent52898c6 commit4e1ff2a
1 file changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7349 | 7349 | | |
7350 | 7350 | | |
7351 | 7351 | | |
| 7352 | + | |
| 7353 | + | |
| 7354 | + | |
| 7355 | + | |
| 7356 | + | |
| 7357 | + | |
| 7358 | + | |
| 7359 | + | |
| 7360 | + | |
| 7361 | + | |
| 7362 | + | |
7352 | 7363 | | |
7353 | 7364 | | |
7354 | 7365 | | |
7355 | 7366 | | |
7356 | 7367 | | |
7357 | 7368 | | |
7358 | | - | |
| 7369 | + | |
7359 | 7370 | | |
7360 | 7371 | | |
7361 | 7372 | | |
| |||
7364 | 7375 | | |
7365 | 7376 | | |
7366 | 7377 | | |
7367 | | - | |
| 7378 | + | |
7368 | 7379 | | |
7369 | 7380 | | |
7370 | 7381 | | |
7371 | 7382 | | |
7372 | 7383 | | |
7373 | 7384 | | |
7374 | | - | |
| 7385 | + | |
7375 | 7386 | | |
7376 | 7387 | | |
7377 | 7388 | | |
| |||
7382 | 7393 | | |
7383 | 7394 | | |
7384 | 7395 | | |
7385 | | - | |
| 7396 | + | |
7386 | 7397 | | |
7387 | 7398 | | |
7388 | | - | |
| 7399 | + | |
7389 | 7400 | | |
7390 | 7401 | | |
7391 | 7402 | | |
| |||
7396 | 7407 | | |
7397 | 7408 | | |
7398 | 7409 | | |
7399 | | - | |
| 7410 | + | |
7400 | 7411 | | |
7401 | 7412 | | |
7402 | 7413 | | |
| |||
7409 | 7420 | | |
7410 | 7421 | | |
7411 | 7422 | | |
7412 | | - | |
| 7423 | + | |
7413 | 7424 | | |
7414 | 7425 | | |
7415 | 7426 | | |
| |||
7418 | 7429 | | |
7419 | 7430 | | |
7420 | 7431 | | |
7421 | | - | |
| 7432 | + | |
7422 | 7433 | | |
7423 | 7434 | | |
7424 | 7435 | | |
| |||
0 commit comments
Comments
(0)