forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita9056cc
committed
Request small targetlist for input to WindowAgg.
WindowAgg will potentially store large numbers of input rows intotuplestores to allow access to other rows in the frame. If the inputis coming via an explicit Sort node, then unneeded columns willalready have been discarded (since Sort requests a small tlist); butthere are idioms like COUNT(*) OVER () that result in the input notbeing sorted at all, and cases where the input is being sorted by somemeans other than a Sort; if we don't request a small tlist, thenWindowAgg's storage requirement is inflated by the unneeded columns.Backpatch back to 9.6, where the current tlist handling was added.(Prior to that, WindowAgg would always use a small tlist.)Discussion:https://postgr.es/m/87a7ator8n.fsf@news-spur.riddles.org.uk1 parent979766c commita9056cc
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2397 | 2397 |
| |
2398 | 2398 |
| |
2399 | 2399 |
| |
2400 |
| - | |
2401 |
| - | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
2402 | 2404 |
| |
2403 |
| - | |
| 2405 | + | |
| 2406 | + | |
2404 | 2407 |
| |
2405 | 2408 |
| |
2406 | 2409 |
| |
|
0 commit comments
Comments
(0)